/* Home/Index responsive overrides moved from view */

.get-involved {
    padding: 60px 0;
    background-color: #f0f8f5;
}

.get-involved .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.get-involved .section-header h2 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.get-involved .section-header p {
    font-size: 1rem;
    color: #555;
}

/* Grid layout */
.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Card styles */
.involvement-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.involvement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Card header */
.card-header h4 {
    color: #28a745;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Paragraphs inside card */
.involvement-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Details/summary styles */
details summary {
    cursor: pointer;
    font-weight: bold;
    color: #1b2a49;
    margin-top: 10px;
    list-style: none;
    outline: none;
}

details[open] summary::after {
    content: "?";
    float: right;
}

details summary::after {
    content: "?";
    float: right;
}

.details-content {
    padding-top: 10px;
}

.details-content ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #444;
}

.details-content li {
    margin-bottom: 6px;
}

/* Responsive adjustments moved from Home/Index */
@media (max-width: 768px) {
    .involvement-grid {
        grid-template-columns: 1fr;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.accommodation {
    padding: 60px 0;
    background-color: #f9fafb;
}

.accommodation .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.accommodation .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.accommodation .section-header p {
    color: #444;
    font-size: 1rem;
    margin: 5px 0;
}

.hotel-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.hotel-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-5px);
}

.hotel-card h4 {
    color: #003366;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.hotel-card h4 a { text-decoration: none; color: inherit; }
.hotel-card h4 a:hover { color: #28a745; }

.hotel-card p { color: #555; margin: 0; line-height: 1.5; }

.accommodation-contact {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1rem;
    color: #444;
    flex-wrap: wrap;
}

.accommodation-contact p { margin: 0; }

.why-attend { text-align: center; padding: 60px 20px; }

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.theme-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.theme-item:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.theme-item h4 { color: #1b4332; margin-bottom: 15px; }

.view-btn { background-color: #2d6a4f; color: white; border: none; border-radius: 6px; padding: 10px 18px; cursor: pointer; font-weight: 600; }
.view-btn:hover { background-color: #1b4332; }

.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); }

.modal-content { background-color: #fff; margin: 100px auto; padding: 25px 30px; border-radius: 10px; width: 90%; max-width: 700px; position: relative; text-align: left; }

.modal-content h4 { color: #2d6a4f; margin-bottom: 10px; }
.close { position: absolute; top: 10px; right: 15px; font-size: 26px; color: #555; cursor: pointer; }
.close:hover { color: #000; }

/* Modal Styles for popup modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 20px; border-radius: 12px; text-align: center; max-width: 400px; width: 90%; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

.modal-buttons { margin-top: 20px; display: flex; justify-content: space-around; }

.btn { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }

/* Base Responsive Styles moved here as well */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.action-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.contact-info-box { background: #f0f8f0; padding: 20px; border-radius: 10px; margin: 20px 0; }
.contact-info-box h4 { color: #2E8B57; margin-bottom: 15px; }
.contact-grid-info { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.maps-section { margin-top: 50px; }
.maps-section h3 { text-align: center; color: #2E8B57; margin-bottom: 30px; }
.map-container { border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); margin-bottom: 20px; }
.map-link { text-align: center; }
.map-link a { color: #2E8B57; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.transportation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.transport-card { background: #e8f5e8; padding: 20px; border-radius: 15px; text-align: center; }
.transport-card i { color: #2E8B57; font-size: 2rem; margin-bottom: 10px; }
.transport-card h4 { color: #2E8B57; margin-bottom: 10px; }
.venue-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.venue-image-container { width: 100%; }
.venue-image { width: 100%; height: auto; border-radius: 10px; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-image-container { width: 100%; }
.contact-image { width: 100%; height: auto; border-radius: 10px; }

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container { padding: 0 15px; }
    .venue-content, .contact-content { gap: 1.5rem; }
    .hero-content { padding: 0 15px; }
}

/* Tablets */
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .hero-content { display: flex; flex-direction: column; gap: 2rem; padding: 20px 10px; }
    .hero-title { font-size: 2.5rem !important; }
    .hero-subtitle-main { font-size: 1.5rem !important; }
    .hero-info { flex-direction: column; gap: 1rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; align-items: center; }
    .countdown-container { order: -1; }
    .countdown-timer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .hero-quick-links { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
    .inaugural-speaker .container { flex-direction: column; gap: 2rem; }
    .speaker-content { flex-direction: column; text-align: center; gap: 1rem; }
    .speaker-image { max-width: 100%; height: auto; display: block; margin-bottom: 20px; }
    .stats, .benefits-grid, .stats-grid, .speakers-grid, .publications-grid, .involvement-grid, .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .ticket-grid { grid-template-columns: 1fr; gap: 1rem; }
    .venue-content, .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid-info { grid-template-columns: 1fr; gap: 1rem; }
    .transportation-grid { grid-template-columns: 1fr; gap: 1rem; }
    .agenda-tabs { flex-direction: column; gap: 0.5rem; }
    .tab-btn { width: 100%; justify-content: center; }
    .agenda-item { flex-direction: column; gap: 1rem; }
    .agenda-image { order: -1; max-width: 100%; }
    .action-buttons { flex-direction: column; align-items: center; gap: 1rem; }
    .action-buttons .btn { width: 100%; max-width: 300px; }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 2rem !important; }
    .hero-subtitle-main { font-size: 1.2rem !important; }
    .hero-theme .theme-text { font-size: 0.9rem; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.4rem !important; }
    h4 { font-size: 1.2rem !important; }
    .btn { padding: 12px 20px; font-size: 0.9rem; }
    .form-row { flex-direction: column; gap: 1rem; }
    .phone-input { flex-direction: column; gap: 1rem; }
    .country-code { width: 100%; }
    .speaker-card, .publication-card, .involvement-card, .blog-card, .ticket-card { padding: 1rem; }
    .map-container iframe { height: 250px; }
    .transport-card { padding: 15px; }
    .transport-card i { font-size: 1.5rem; }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .hero-title { font-size: 1.8rem !important; }
    .countdown-timer { grid-template-columns: 1fr; gap: 0.5rem; }
    .countdown-item { padding: 0.5rem; }
    .btn { padding: 10px 15px; font-size: 0.8rem; }
    .map-container iframe { height: 200px; }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 2rem 0; }
    .hero-content { gap: 1rem; }
    .countdown-timer { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
    .countdown-item { padding: 0.5rem; }
}

/* Print Styles */
@media print {
    .hero-buttons, .action-buttons, .btn, .map-container, .contact-form { display: none !important; }
    .container { max-width: 100%; padding: 0; }
    .agenda-content{ margin-bottom: -11px; }
    * { background: white !important; color: black !important; }
}

/* Layout specific responsive rules for header, nav, footer */

/* Base overrides for nav and footer already in site.css - keep small focused rules here */

.hamburger {
    display: none;
}

@media (max-width: 992px) {
    /* Navbar container adjustments */
    /* Keep header row intact on mobile: left logo, hamburger/right logo */
    .navbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 64px; /* consistent header height */
        padding: 6px 12px;
        flex-wrap: nowrap;
        background: #fff; /* ensure visual separation */
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        z-index: 1200;
    }

    .nav-brand img {
        height: 44px;
        max-height: 44px;
        display: block;
    }

    /* Menu hidden by default on mobile */
    .nav-menu {
        display: none;
        flex-direction: column;
        background-color: white;
        width: 100%;
        position: absolute;
        top: calc(100% + 6px);
         left: 0;
         z-index: 1000;
         border-top: 1px solid #ddd;
         text-align: center;
     }

     .nav-menu.active {
         display: flex;
     }

     .nav-link, .dropdown-btn, .dropdown-content a {
         padding: 10px;
         color: #000 !important;
         text-decoration: none;
         display: block;
     }

     /* Hamburger icon */
     .hamburger {
         display: flex;
         flex-direction: column;
         cursor: pointer;
         gap: 5px;
         position: relative;
         top: 0;
         right: 0;
         z-index: 1500;
     }

     .hamburger span {
         width: 25px;
         height: 3px;
         background-color: #000;
         border-radius: 3px;
     }

     /* Footer responsiveness */
     .footer-main {
         display: flex;
         flex-direction: column;
         align-items: center;
         text-align: center;
     }

     .footer-section {
         margin-bottom: 20px;
     }

     .footer-logo {
         height: 50px !important;
     }

     .footer-UI {
         list-style: none;
         padding: 0;
     }

     /* Buttons smaller */
     .btn {
         font-size: 0.9rem !important;
         padding: 7px 12px !important;
     }

     /* Modal smaller */
     .modal-dialog {
         margin: 1rem;
     }
}

/* Additional mobile header fixes to keep logos on one line */
@media (max-width: 992px) {
    /* Center the navbar content while placing logos and hamburger absolutely */
    .navbar {
        display: flex !important;
        justify-content: center !important; /* center middle logo */
        align-items: center !important;
        position: relative !important;
        height: 64px; /* fixed height to avoid wrapping */
        padding: 6px 12px !important;
        flex-wrap: nowrap !important;
        background: #fff; /* ensure visual separation */
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        z-index: 1200;
    }

    /* Left logo - pinned to left */
    .navbar .nav-brand:first-child {
        position: absolute !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1600;
        margin: 0 !important;
    }

    /* Second logo moved to near right (left of hamburger) */
    .navbar .nav-brand:last-child {
        position: absolute !important;
        right: 48px !important; /* leave space for hamburger */
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1600;
        margin: 0 !important;
    }

    /* Reduce logo sizes on mobile */
    .navbar .nav-brand img {
        height: 40px !important;
        max-height: 40px !important;
        display: block;
    }

    /* Hamburger pinned to right */
    .hamburger {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        z-index: 1700 !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger span { width: 22px; height: 3px; }

    /* Ensure nav-menu sits below header and covers full width when active */
    .navbar .nav-menu {
        display: none !important;
        position: absolute !important;
        left: 0 !important;
        top: 100% !important;
        width: 100% !important;
        background: #fff !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
        z-index: 1150 !important;
        padding-top: 6px !important;
    }
    .navbar .nav-menu.active { display: flex !important; }

    /* Make sure links are tappable */
    .nav-link, .dropdown-btn, .dropdown-content a {
        padding: 14px 12px !important;
        font-size: 16px !important;
    }

    /* Remove body padding previously added to avoid layout shift */
    body { padding-top: 0 !important; }
}

/* End additional header fixes */
