:root {
    --primary-color: #173F5F;
    --secondary-color: #20639B;
    --accent-color: #F6D55C;
    --background-color: #F5F5F5;
    --text-color: #333;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}



.logo {
    /* Revert absolute positioning */
    position: static;
    transform: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Ensure buttons in nav keep their styles */
.nav-links a.btn {
    color: var(--white);
    padding: 10px 20px;
}

/* Specific styling for links that are NOT buttons */
.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--primary-color);
}

.nav-links a:not(.btn):hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Media Query for Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        max-height: 500px;
        padding-bottom: 20px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .nav-links a.btn {
        width: 80%;
        margin: 10px auto;
        display: inline-block;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons ion-icon {
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.social-icons ion-icon:hover {
    color: var(--accent-color);
}

/* Home Page Specifics */
.hero {
    height: 80vh;
    /* background-image: url('../images/uday_hero_banner.png'); Removed static bg */
    /* background-size: cover; */
    /* background-position: center; */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    /* Ensure slides don't overflow */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* What is UDAY */
.intro-text {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border-bottom: none !important;
    /* Removing the colored bottom border preference for cleaner look, or I can keep it if desirable. I'll remove it to match the clean card verification plan. */
}

.card ion-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

/* Impact Strip */
.impact-strip {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

.impact-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.impact-item {
    display: flex;
    flex-direction: column;
}

.impact-number {
    min-width: 100px;
    width: fit-content;
    height: 100px;
    padding: 0 20px;
    background: rgba(32, 99, 155, 0.1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    font-weight: bold;
    white-space: nowrap;
}

.impact-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 10px;
}

/* Page Banner Styling */
.page-banner {
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    text-align: center;
    position: relative;
    background-repeat: no-repeat;
}

.uf-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.theme-icon ion-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Why UDAY */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout .text-side {
    flex: 1;
}

.split-layout .image-side {
    flex: 1;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.check-list ion-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.rounded-img {
    border-radius: 10px;
    box-shadow: none;
    border: none;
    max-width: 100%;
    height: auto;
    display: block;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        gap: 0;
    }

    .navbar nav {
        display: contents;
    }

    .logo {
        position: static;
        transform: none;
        display: flex;
        align-items: center;
    }

    /* Override previous nav-links wrap rule as it conflicts with absolute menu */
    /*
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    */

    .hero h1 {
        font-size: 2.5rem;
    }

    .split-layout {
        flex-direction: column;
    }

    .why-uday .text-side {
        order: 2;
    }


    /* About Page Specifics */
    .page-banner {
        background: var(--primary-color);
        color: var(--white);
        padding: 60px 0;
        text-align: center;
    }

    .mission-vision .mv-box {
        background: var(--white);
        padding: 40px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        flex: 1;
        text-align: center;
        border-top: 5px solid var(--secondary-color);
    }

    .mission-box {
        border-color: var(--secondary-color);
    }

    .vision-box {
        border-color: var(--accent-color);
    }
}

/* Timeline */
/* Unique Features Background */
section.unique-features {
    background-color: #3672A5 !important;
    position: relative;
    padding: 80px 0;
    color: #fff;
}

section.unique-features .section-title {
    color: #fff !important;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
    counter-reset: timeline-counter;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(23, 63, 95, 0.2);
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    background-color: transparent;
    width: 50%;
    box-sizing: border-box;
    counter-increment: timeline-counter;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Creative Arrow Markers */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 0 !important;
    height: 0 !important;
    top: 35px;
    z-index: 2;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;

    /* Default (Odd/Left Items) -> Point Left */
    border-top: 10px solid transparent !important;
    border-bottom: 10px solid transparent !important;
    border-right: 15px solid var(--accent-color) !important;
    border-left: none !important;
    right: -7px;
    /* Align flat side to center line */
    left: auto;
}

.timeline-item:hover::after {
    transform: scale(1.2);
    border-right-color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
}

/* Even (Right Items) -> Point Right */
.timeline-item:nth-child(even)::after {
    border-top: 10px solid transparent !important;
    border-bottom: 10px solid transparent !important;
    border-left: 15px solid var(--accent-color) !important;
    border-right: none !important;
    left: -7px;
    /* Align flat side to center line */
    right: auto;
}

.timeline-content {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
    backdrop-filter: blur(5px);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid var(--accent-color);
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 31px !important;
        /* Centered on the line */
        right: auto;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    background: var(--white);
    color: var(--primary-color);
    cursor: pointer;
    padding: 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: 0.4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header.active,
.accordion-header:hover {
    background-color: #f1f1f1;
}

.accordion-header ion-icon {
    transition: 0.3s;
}

.accordion-header.active ion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    padding: 0 20px;
}

.accordion-content p {
    padding: 20px 0;
    color: #555;
}

/* Themes Page */
.theme-detail-card {
    text-align: center;
    padding: 40px;
}

.theme-detail-card p {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
}

/* Gallery Page */
.gallery-section {
    padding-bottom: 80px;
}

.gallery-card {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-icon {
    width: 70px;
    height: 70px;
    background: #eef2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
}

.gallery-card:hover .gallery-icon {
    background: var(--secondary-color);
}

.gallery-card:hover .gallery-icon ion-icon {
    color: var(--white);
}

.gallery-icon ion-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Upcoming Edition Page */
.upcoming-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/uday_hero_banner.png');
    /* reusing hero image or use a new one */
}

.edition-details .check-list li {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Table */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.custom-table th,
.custom-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.custom-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover {
    background-color: #f9f9f9;
}

/* Contact Page */
.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item ion-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    background: #eef2f5;
    padding: 15px;
    border-radius: 50%;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.query-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.query-form-container h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(32, 99, 155, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}


/* Force Fix for Slider */
.themes-wrapper {
    position: relative !important;
    display: flex;
    align-items: center;
}

.themes-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE 10+ */
}

.themes-slider::-webkit-scrollbar {
    display: none !important;
    /* Chrome, Safari */
    width: 0 !important;
    height: 0 !important;
}

.slider-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: var(--white) !important;
    border: none !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    transition: 0.3s !important;
    font-size: 1.5rem !important;
    color: var(--primary-color) !important;
}

.slider-btn:hover {
    background: var(--secondary-color) !important;
    color: var(--white) !important;
}

.prev-btn {
    left: -25px !important;
}

.next-btn {
    right: -25px !important;
}

/* Theme Cards Styling */
.theme-card {
    background: #fff;
    min-width: 280px;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.theme-card h4 {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Unique Theme Colors */
.theme-orange .theme-icon {
    /* background removed */
    color: #FF9F43 !important;
}

.theme-orange:hover {
    border-bottom: 3px solid #FF9F43 !important;
}

.theme-green .theme-icon {
    /* background removed */
    color: #2ECC71 !important;
}

.theme-green:hover {
    border-bottom: 3px solid #2ECC71 !important;
}

.theme-blue .theme-icon {
    /* background removed */
    color: #3498DB !important;
}

.theme-blue:hover {
    border-bottom: 3px solid #3498DB !important;
}

.theme-cyan .theme-icon {
    /* background removed */
    color: #00D2D3 !important;
}

.theme-cyan:hover {
    border-bottom: 3px solid #00D2D3 !important;
}

.theme-purple .theme-icon {
    /* background removed */
    color: #5f27cd !important;
}

.theme-purple:hover {
    border-bottom: 3px solid #5f27cd !important;
}