:root {
    --primary-orange: #FF7F32;
    /* Adjusted based on typical orange branding */
    --primary-dark-orange: #E86A22;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    /* Removed gap and text decoration since title is removed */
}

.logo-container .brand-logo {
    height: 50px;
    /* Slightly larger logo */
    width: auto;
    display: block;
}

/* Mobile Toggle Default Hidden */
.mobile-menu-toggle {
    display: none;
}

/* Navigation */
.main-nav {
    margin-left: auto;
    /* Push nav to the right */
}

.main-nav ul {
    display: flex;
    flex-direction: row;
    /* Explicitly row */
    flex-wrap: nowrap;
    /* Prevent wrapping */
    list-style: none;
    gap: 1.5rem;
    /* Adjusted gap to prevent overflow on smaller screens */
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    display: block;
    /* Ensure no list-item bullet issues */
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Slightly reduced spacing */
    white-space: nowrap;
    /* Prevent text wrapping */
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-orange);
}

/* Intro */
.intro-section {
    text-align: center;
    padding: 3rem 0;
}

.intro-section h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-bottom: 4rem;
}

/* Card */
.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 0;
    display: flex;
    align-items: stretch;
    height: 120px;
    /* Enforce uniform height */
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid transparent;
    overflow: hidden;
    text-align: left;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-left: 5px solid var(--primary-orange);
}

/* Image Container */
.member-image-container {
    width: 130px;
    flex-shrink: 0;
    background-color: #FFF0E5;
    position: relative;
    border-right: 1px solid #f0f0f0;
}

.member-image-placeholder,
.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image-placeholder {
    color: var(--primary-orange);
    font-size: 1.8rem;
    font-weight: 600;
}

.member-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

.member-role {
    font-size: 0.95rem;
    color: var(--primary-orange);
    font-weight: 500;
}

/* Content Pages */
.content-section {
    padding: 2rem 0 4rem;
}

.content-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.content-card h2,
.content-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.content-card h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.content-card ul {
    list-style-position: inside;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.content-card li {
    margin-bottom: 0.5rem;
}

/* Itinerary Table */
.itinerary-container {
    overflow-x: auto;
}

.itinerary-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.itinerary-table th,
.itinerary-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.itinerary-table th {
    background-color: var(--bg-light);
    color: var(--primary-orange);
    font-weight: 600;
}

.itinerary-table tr:hover {
    background-color: #fafafa;
}

/* Emergency Contacts */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #eee;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-number {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
}

.contact-number:hover {
    color: var(--primary-dark-orange);
}


/* Footer */
.main-footer {
    background-color: var(--white);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: row;
        /* Keep row to allow space-between */
        align-items: center;
        justify-content: space-between;
        /* Push logo left, hamburger right */
        text-align: left;
        position: relative;
    }

    .header-brand {
        flex: 0 0 auto;
        /* Allow brand to shrink to logo size */
        margin-bottom: 0;
        padding: 0;
        width: auto;
        justify-content: flex-start;
    }

    /* Fix Flip Card on Mobile */
    .flip-card-front .member-image-container {
        width: 130px !important;
        /* Smaller image on mobile */
    }

    .flip-card-front .member-info {
        padding: 1rem !important;
        /* Reduced padding on mobile */
        text-align: left;
    }

    .member-name {
        font-size: 1.1rem;
        /* Slightly smaller text if needed */
    }

    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--primary-orange);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
        /* Adjusted for visual alignment */
    }

    /* Navigation Menu on Mobile */
    .main-nav {
        display: none;
        /* Hidden by default on mobile */
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #eee;
    }

    .main-nav.nav-open {
        display: block;
        /* Show when active */
    }

    .main-nav ul {
        flex-direction: column;
        /* Stack links vertically */
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f9f9f9;
        text-align: center;
    }

    .intro-section h2 {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* Itinerary New Layout */
.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.day-card {
    background: var(--white);
    border: 1px solid #000;
    /* Black border as per image */
    padding: 0;
    margin-bottom: 2rem;
}

.day-header {
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 10px;
    border-bottom: 1px solid #000;
}

.time-slot-row {
    display: flex;
    border-bottom: 1px solid #000;
}

.time-slot-row:last-child {
    border-bottom: none;
}

.time-label {
    width: 50%;
    padding: 10px;
    border-right: 1px solid #000;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered as per image? No, image looks left aligned or centered. Let's try centered */
    text-align: center;
}

.time-activity {
    width: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
}

/* Festive Itinerary Design */
.festive-wrapper {
    background-color: var(--primary-orange);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    gap: 2rem;
    min-height: 80vh;
    box-shadow: 0 10px 25px rgba(255, 127, 50, 0.3);
}

.festive-sidebar {
    width: 60px;
    /* Slim sidebar stripe */
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 10px;
    flex-shrink: 0;
    /* Optional: Add a pattern or texture here if available */
}

.festive-content {
    flex-grow: 1;
}

.festive-header {
    margin-bottom: 2rem;
}

.festive-header h2 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.festive-header .subtitle {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Updated Itinerary Grid for Festive Look */
.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.day-card {
    background: var(--white);
    border: none;
    /* Removed black border */
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 0;
    /* Grid handles gap */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.day-card:hover {
    transform: translateY(-5px);
}

.day-header {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
    margin-bottom: 1rem;
    color: var(--primary-orange);
    text-transform: uppercase;
}

.time-slot-row {
    display: flex;
    border-bottom: 1px solid #ddd;
    /* Darker border for visibility */
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.time-slot-row:last-child {
    border-bottom: none;
}

.time-label {
    width: 40%;
    /* Adjusted width */
    padding-right: 10px;
    border-right: 2px solid var(--primary-orange);
    /* Theme colored divider */
    font-weight: 600;
    color: var(--text-light);
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.time-activity {
    width: 60%;
    padding-left: 10px;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--text-dark);
    font-weight: 500;
}

/* Notes Section */
.festive-notes {
    margin-top: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    min-height: 100px;
}

.festive-notes h3 {
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .festive-wrapper {
        flex-direction: column;
        padding: 1rem;
    }

    .festive-sidebar {
        width: 100%;
        height: 20px;
        margin-bottom: 1rem;
    }

    .festive-header h2 {
        font-size: 2rem;
    }
}

/* Explore Ahmedabad Attraction Styles */
.attraction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.attraction-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.attraction-card:hover {
    transform: translateY(-5px);
}

.attraction-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.attraction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.attraction-card:hover .attraction-image {
    transform: scale(1.05);
}

.attraction-info {
    padding: 1.5rem;
    text-align: center;
}

.attraction-info h3 {
    color: var(--primary-orange);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Itinerary Schedule Border */
.schedule-border {
    border: 2px solid var(--primary-orange);
    margin: 10px;
    border-radius: 4px;
    background-color: #fff;
    overflow: hidden;
    /* Ensure children don't overflow border radius */
}

.schedule-border .time-slot-row:first-child {
    margin-top: 0;
}

/* =========================================
   Interactive Flip Card Styles
   ========================================= */

.team-card.interactive-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    perspective: 1000px;
    height: 300px !important;
    /* Force taller height */
    padding: 0 !important;
    overflow: visible !important;
    /* Allow 3D to work */
    display: block !important;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Hover & Manual Flip */
.team-card.interactive-card:hover .flip-card-inner,
.team-card.interactive-card.manual-flip .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    top: 0;
    left: 0;
}

/* Front Face Styling */
.flip-card-front {
    background: var(--white);
    display: flex !important;
    /* Force Flex */
    flex-direction: row !important;
    align-items: stretch;
    border-left: 5px solid transparent;
}

/* Image Container in Front Face */
.flip-card-front .member-image-container {
    width: 220px !important;
    /* Increased from 130px */
    flex-shrink: 0;
    height: 100% !important;
    background-color: #FFF0E5;
    position: relative;
    border-right: 1px solid #f0f0f0;
}

.flip-card-front .member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info in Front Face */
.flip-card-front .member-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    /* Increased left padding to shift text right */
    text-align: left;
}

/* Back Face Styling */
.flip-card-back {
    background: var(--primary-orange);
    color: var(--white);
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.flip-card-back p {
    color: var(--white);
    line-height: 1.5;
}

.flip-bio {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.flip-quote {
    font-size: 0.95rem;
    font-weight: 600;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 1rem;
}