/* --- Reset & Base Variables --- */
:root {
    --primary-color: #0c1b42;
    /* Deep Navy Blue */
    --secondary-color: #162f6d;
    /* Lighter Navy */
    --accent-color: #2563eb;
    /* Active Blue Accent */
    --white: #ffffff;
    --light-gray: #f4f5f7;
    --border-gray: #e5e7eb;
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --whatsapp-green: #25D366;
    --transition-fast: all 0.3s ease;
    --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for fixed header height */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.alt-bg {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-whatsapp-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-whatsapp-outline:hover {
    background-color: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
    color: var(--white);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.header.scrolled {
    padding: 5px 0;
    box-shadow: var(--box-shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(8, 28, 68, 0.6) 0%, rgba(20, 60, 140, 0.5) 100%), url('../images/gallery_building.jpg') no-repeat center center/cover;
    padding-top: 80px;
}

/* Optional: Add background image using an overlay approach layer later */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    color: #e2e8f0;
}

.hero .intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Courses Preview --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-fast);
    border: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-fast);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.course-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.course-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.course-benefits {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.course-benefits li {
    margin-bottom: 8px;
    font-weight: 500;
}

/* --- Why Choose Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: var(--transition-fast);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-sm);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- About Us Preview --- */
.about {
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-content .highlight-text {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content>p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-box {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
}

.mv-box h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mv-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
}

.contact-info {
    padding: 40px;
    background-color: var(--primary-color);
    color: var(--white);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.5rem;
}

.info-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-item p,
.info-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.info-item a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-map {
    min-height: 400px;
}

/* --- Footer --- */
.footer {
    background-color: #051024;
    color: var(--white);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #9ca3af;
    display: flex;
    align-items: center;
}

.footer-links ul li a::before {
    content: '→';
    margin-right: 8px;
    color: var(--accent-color);
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-links ul li a:hover::before {
    transform: translateX(5px);
}

.footer-contact p {
    color: #9ca3af;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #030814;
    padding: 20px 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition-fast);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/* --- Faculty & Gallery --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faculty-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-fast);
    border: 1px solid var(--border-gray);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.faculty-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
    background-color: var(--white);
}

.faculty-info {
    padding: 25px;
    text-align: center;
}

.faculty-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.faculty-subject {
    display: inline-block;
    color: var(--white);
    background-color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--box-shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 27, 66, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Connect Section --- */
.connect-section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.connect-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.connect-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    border-radius: 50px;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 280px;
    justify-content: center;
}

.connect-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
}

.fb-card {
    color: #1877F2;
    border: 2px solid #1877F2;
}

.fb-card:hover {
    background-color: #1877F2;
    color: var(--white);
}

.ig-card {
    color: #E1306C;
    border: 2px solid #E1306C;
}

.ig-card:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    border-color: transparent;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .floating-whatsapp svg {
        width: 25px;
        height: 25px;
    }
}