/* CSS Reset & Variables */
:root {
    --primary-color: #1a365d; /* Deep blue from posters */
    --secondary-color: #c5a059; /* Gold/Sand from posters */
    --text-color: #333333;
    --light-bg: #fdfbf7; /* Off-white */
    --pink-light: #f9ecec; /* Light pink from Ima Lavia logo */
    --white: #ffffff;
    --font-heading: 'Heebo', sans-serif;
    --font-body: 'Assistant', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-pink-light { background-color: var(--pink-light); }
.bg-dark { background-color: var(--primary-color); }
.text-white { color: var(--white) !important; }
.text-white p { color: rgba(255,255,255,0.8); }

.text-center { text-align: center; }

/* Typography Helpers */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: -10px;
    right: 0;
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}

.highlight-text {
    color: #a36f6f; /* Warmer tone for Ima Lavia */
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.bg-dark .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}
.btn-block {
    display: block;
    width: 100%;
}
.mt-3 { margin-top: 20px; }

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}
.nav-links a:hover {
    color: var(--secondary-color);
}
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.hero-text {
    flex: 1;
}
.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.hero-text .highlight {
    color: var(--secondary-color);
}
.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 90%;
}
.hero-buttons {
    display: flex;
    gap: 15px;
}
.hero-image {
    flex: 1;
    position: relative;
}
.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 15px 15px 0 var(--secondary-color);
    display: block;
    margin: 0 auto;
}

/* Split Layout (About & Lavia) */
.split-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.split-layout.align-center {
    align-items: center;
}
.split-layout > div {
    flex: 1;
}
.about-text p, .ima-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.about-images img {
    width: 100%;
    border-radius: 10px;
}
.shadow-img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.ima-logo img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

/* Lectures Section */
.lectures-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.lecture-card {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.lecture-card:nth-child(even) {
    flex-direction: row-reverse;
}
.lecture-img {
    flex: 1;
    min-width: 40%;
}
.lecture-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lecture-content {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lecture-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.lecture-content .subtitle {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.lecture-features {
    margin-top: 25px;
}
.lecture-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.lecture-features i {
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-details {
    margin-top: 30px;
}
.contact-details li {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-details i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    color: var(--text-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: #0d1e36;
    color: #fff;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Animations Classes (Handled via JS Intersection Observer) */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.is-visible { opacity: 1; transform: translate(0, 0); }

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content, .split-layout, .lecture-card, .lecture-card:nth-child(even) {
        flex-direction: column;
    }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-image img { box-shadow: 10px 10px 0 var(--secondary-color); margin-top: 30px; }
    .lecture-img { min-height: 250px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide on mobile by default */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .section-padding { padding: 50px 0; }
    .contact-form { padding: 20px; }
}
