/* Professional Theme Overhaul - Sri Vasavi Mithra */

:root {
    --primary: #0A192F;
    /* Deep Royal Navy */
    --secondary: #B8860B;
    /* Dark Goldenrod - more subtle/rich than bright yellow */
    --accent: #E63946;
    /* Subtle red for CTA or highlights if needed, else stick to gold */
    --light-bg: #F8F9FA;
    /* Clean Off-White */
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    height: 100px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    /* Strictly pushes items to edges */
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    /* Prevent logo shrinking */
}

.logo img {
    height: 70px;
    width: auto;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.magazine-tag {
    font-size: 0.7rem !important;
    /* Slightly smaller or distinct */
    color: var(--text-dark) !important;
    letter-spacing: 1px !important;
    margin-top: 2px;
    text-transform: capitalize !important;
    /* Maybe keep it normal case or uppercase as user prefers, "Monthly Magazine" suggests Title Case */
    font-weight: 600;
    display: block;
}

.contact-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--secondary);
}

.contact-item i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.menu-toggle {
    display: none;
}

/* --- Hero Section (Split View) --- */
.hero-split {
    margin-top: 0;
    /* Header Offset moved to ticker */
    padding: 40px 0 80px 0;
    min-height: 85vh;
    /* Taller */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    /* Subtle gradient */
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    flex: 1;
    margin-bottom: 20px;
}

.badge {
    background: rgba(184, 134, 11, 0.1);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-text h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--secondary);
    font-style: italic;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 480px;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.primary-btn {
    padding: 14px 30px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(10, 25, 47, 0.3);
    transition: transform 0.3s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    background: #0f2444;
}

.secondary-btn {
    padding: 14px 30px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero Visual (Carousel) */
.hero-visual {
    flex: 1;
    position: relative;
}

.carousel-frame {
    width: 100%;
    height: 500px;
    /* Taller for better impact */
    border-radius: 20px;
    /* Softer corners */
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* Floating effect */
    background: var(--white);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CHANGED from cover to contain */
    /* Professional look: fills the frame. */
    object-position: center;
    /* Focus on faces/top usually better */
    background: #000;
    /* or dark background for letterboxing effect if needed */
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-track img.active {
    opacity: 1;
}

.carousel-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    color: var(--primary);
    transition: background 0.3s;
}

.carousel-nav button:hover {
    background: var(--white);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* --- Stats Section --- */
.stats-section {
    background: var(--primary);
    padding: 60px 0;
    color: var(--white);
    position: relative;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary);
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 15px auto;
}

.section-title p {
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--secondary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(10, 25, 47, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Footer --- */
footer {
    background: #050d1a;
    color: #a8b2d1;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--white);
    font-family: var(--font-heading);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.footer-contact a {
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .split-container {
        grid-template-columns: 1fr;
        /* Stack visually */
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        order: 1;
        margin: 0 auto;
    }

    .hero-visual {
        order: 2;
        /* Image below text on mobile for flow */
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .cta-group {
        justify-content: center;
    }

    .carousel-frame {
        height: 350px;
        /* Slightly shorter on mobile */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-contact p {
        justify-content: center;
    }

    .logo {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 10px 0;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        margin-bottom: 5px;
    }

    .contact-info {
        flex-direction: column;
        /* Stack phones/emails */
        gap: 5px;
        font-size: 0.85rem;
    }

    .menu-toggle {
        display: none;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- Sponsor Section --- */
.sponsors-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    overflow: hidden;
    /* Hide overflow */
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.sponsor-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    /* Professional border */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 120px;
    transition: transform 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
        /* Move by half the track width (one set of logos) + 1/2 gap adjustment */
    }
}

/* --- News Ticker --- */
.news-ticker-bar {
    background: #000;
    color: #fff;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--secondary);
    margin-top: 100px;
    /* Header Offset */
}

.ticker-container {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--secondary);
    color: #000;
    padding: 2px 10px;
    font-weight: 700;
    border-radius: 2px;
    margin-right: 15px;
    white-space: nowrap;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}