:root {
    --color-navy: #1B263B;
    --color-gold: #D4AF37;
    --color-ivory: #F8F9FA;
    --color-text-dark: #333333;
    --color-text-light: #F8F9FA;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-ivory);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    color: var(--color-navy);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utility Classes */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--color-gold);
    color: var(--color-navy);
    font-weight: 600;
    border-radius: 4px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn svg {
    margin-left: 0.5rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    background-color: var(--color-navy);
    color: var(--color-ivory);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    background-color: var(--color-ivory);
    /* Ensure visibility against dark header */
    padding: 2px;
    border-radius: 4px;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    /* "Shady" glow effect */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

nav a:hover {
    color: var(--color-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-ivory);
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 2rem 6rem;
    background: linear-gradient(135deg, rgba(27, 38, 59, 0.95), rgba(27, 38, 59, 0.8)), url('https://images.unsplash.com/photo-1541829070764-84a7d30dd3f3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    /* Fallback generic academic image */
    background-size: cover;
    background-position: center;
    color: var(--color-ivory);
    max-width: 100%;
}

.hero h1 {
    color: var(--color-gold);
    font-size: 2.5rem;
    /* Significant reduction from 3.5rem */
    margin-bottom: 1.5rem;
    animation-delay: 0.2s;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    animation-delay: 0.4s;
    line-height: 1.6;
}

.hero .btn {
    animation-delay: 0.6s;
}

.page-hero {
    padding: 6rem 2rem 4rem;
    min-height: 40vh;
}

/* Class Showcase */
.classes {
    text-align: center;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.class-card {
    background: white;
    padding: 2.5rem;
    border-top: 4px solid var(--color-navy);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: left;
    opacity: 0;
    /* JS will handle reveal */
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-gold);
}

.class-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.class-card h3 svg {
    margin-top: 4px;
    /* Optical alignment with text */
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

.class-card ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

.class-card li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}

/* Methodology */
.methodology {
    background-color: #EAECEF;
    max-width: 100%;
}

.method-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.research-box {
    background: var(--color-navy);
    color: var(--color-ivory);
    padding: 3rem;
    border-radius: 8px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.research-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: var(--font-serif);
    font-size: 10rem;
    opacity: 0.1;
    color: var(--color-gold);
}

.research-box h3 {
    color: var(--color-gold);
}

.responsive-img-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
    /* Right align on desktop */
    max-width: 100%;
}

@media (max-width: 768px) {
    .responsive-box {
        padding: 2.5rem 1.5rem !important;
        /* Balanced left and right padding */
        gap: 2rem !important;
        width: 100%;
        /* Ensure it spans the container properly */
        box-sizing: border-box;
    }

    .responsive-img-container {
        justify-content: center;
        /* Center align on mobile */
        flex: 1 1 100%;
        /* Take full width so it doesn't hang to right */
    }
}

/* Lecturer Profile */
.profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-image-container {
    position: relative;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--color-gold);
}

.profile-content h2 {
    font-size: 2.5rem;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.credential-item i {
    color: var(--color-gold);
    margin-top: 4px;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    font-weight: 600;
    transition: transform var(--transition-speed);
}

.floating-whatsapp:hover {
    transform: scale(1.05);
}

.floating-whatsapp::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50px;
    border: 2px solid var(--color-gold);
    opacity: 0;
    animation: pulse 2s infinite;
}

/* Floating Facebook */
.floating-facebook {
    position: fixed;
    bottom: 100px;
    /* Positioned above WhatsApp button which is at 30px + height ~60px */
    right: 30px;
    background-color: #1877F2;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    z-index: 1000;
    font-weight: 600;
    transition: transform var(--transition-speed);
    text-decoration: none;
}

.floating-facebook:hover,
.floating-whatsapp:hover {
    transform: scale(1.05);
}

.floating-facebook img,
.floating-whatsapp img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.floating-facebook:hover {
    transform: scale(1.05);
}

.floating-facebook img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    /* Just in case it's square */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* Image Animations */
@keyframes floatImage {
    0% {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    50% {
        transform: translateY(-20px);
        box-shadow: 0 25px 50px rgba(212, 175, 55, 0.35);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}

.floating-image {
    animation: floatImage 4s ease-in-out infinite;
}

/* Footer */
footer {
    background-color: var(--color-navy);
    color: #ccc;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .profile {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-img {
        box-shadow: 10px 10px 0 var(--color-navy);
    }

    nav ul {
        display: none;
    }

    /* Simplified for MVP, ideally a hamburger menu */
    .mobile-menu-btn {
        display: block;
    }
}