/*
 * ===================================================================
 *  Vidyamandira Portal V2 - Standalone Landing Page Styles
 *  File: /public/assets/css/landing-page.css
 * ===================================================================
 */

/* --- CSS Variables & Base Styles --- */
:root {
    --color-saffron: #F97316;
    --color-maroon: #5a1c0c;
    --color-cream: #FFFBEB;
    --color-dark: #2d1810;
    --color-light-gray: #f5f5f5;
    --color-text: #374151;
    --font-display: 'Merriweather', serif;
    --font-body: 'Poppins', sans-serif;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream); /* Main background color inspired by Belur Math */
    line-height: 1.7;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Reusable Components --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--color-saffron);
    color: white;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-saffron);
    color: var(--color-saffron);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.section { padding: 5rem 0; }
.section-alt-bg { background-color: white; }

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.text-center { text-align: center; }

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding: 1.5rem 0;
}
.main-header.scrolled {
    background-color: rgba(255, 251, 235, 0.9); /* Creamy transparent */
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo img { height: 48px; }
.logo-text { font-size: 1.4rem; font-weight: 600; color: var(--color-dark); }
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-saffron);
    transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }
.login-btn i { margin-right: 0.5rem; }

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background: none;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0.7) grayscale(10%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(90, 28, 12, 0.7), rgba(45, 24, 16, 0.3)); /* Maroon gradient */
}
.hero-content { position: relative; z-index: 1; }
.hero-title,
.hero-subtitle {
    text-align: center;
    display: block;
    width: 100%;
    max-width: 1100px; /* You can adjust this value */
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    margin-bottom: 2rem;
}

.hero-btn { font-size: 1.1rem; padding: 1rem 2.5rem; }
.hero-btn:hover { color: white; border-color: white; }

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.quote-author { font-weight: 600; color: var(--color-maroon); }

/* --- Institutions Section --- */
.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.institution-card {
    text-decoration: none;
    color: inherit;
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.institution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content { padding: 1.5rem; }
.card-content h3 { margin-top: 0; font-family: var(--font-display); color: var(--color-dark); }

/* --- Footer --- */
.main-footer {
    background-color: var(--color-maroon);
    color: rgba(255, 251, 235, 0.8); /* Creamy text */
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}
.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-saffron);
    margin: 0 0 1rem 0;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: var(--color-saffron); }
.social-links { display: flex; gap: 1rem; }
.social-links a {
    color: rgba(255, 251, 235, 0.8);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover { color: var(--color-saffron); transform: scale(1.1); }
.copyright {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-nav, .login-btn { display: none; } /* Mobile menu would replace this */
    .about-content { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section { padding: 3rem 0; }
    .footer-grid { text-align: center; }
    .contact-list li, .social-links { justify-content: center; }
}