/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #4a86e8;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 5px;
    width: 100%;
}

.logo-container {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}

h1 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-top: 5px;
}

.search-container {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.search-input {
    width: 80%;
    max-width: 450px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
}

.ask-button {
    position: relative;
    right: 50px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    display: flex;
    align-items: center;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: #f0f0f0;
    font-size: 0.8rem;
}

.icon {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: space-between;
    width: 100%;
    min-height: 100vh;
}

/* Profile Section */
.profile-section {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-right: 15px;
}

.profile-card, .events-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.profile-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 12px 12px 8px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9370DB, #4a86e8);
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
    border: 1px solid #f5f5f7;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #333;
    font-weight: 500;
}

.profile-card p {
    color: #666;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.view-programs-link {
    color: #4a86e8;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    margin-top: 5px;
}

.view-programs-link:hover {
    color: #9370DB;
    text-decoration: underline;
}

/* Events Card */
.events-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    margin-top: 0;
}

.events-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9370DB, #4a86e8);
}

.events-card h3 {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.events-card > p {
    color: #666;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.host-event-btn {
    background-color: transparent;
    color: #4a86e8;
    margin: 3px 0 12px;
    font-size: 0.75rem;
    padding: 0;
    border-radius: 0;
    transition: all 0.2s ease;
    width: auto;
    text-decoration: none;
    display: inline-block;
}

.host-event-btn:hover {
    color: #9370DB;
    text-decoration: underline;
}

.event {
    border-top: 1px solid #eee;
    padding: 12px 0;
    margin-bottom: 4px;
    transition: background-color 0.2s ease;
}

.event:hover {
    background-color: #f9f9fb;
}

.event:last-child {
    padding-bottom: 3px;
}

.event h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #444;
    transition: color 0.2s ease;
    font-weight: 500;
}

.event:hover h4 {
    color: #4a86e8;
}

.event-meta {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
}

.event-description {
    font-size: 0.75rem;
    margin-bottom: 6px;
    color: #555;
    line-height: 1.4;
}

.event-dates li, .event-date {
    font-size: 0.75rem;
    color: #4a86e8;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.event-dates li:hover, .event-date:hover {
    color: #3a66b8;
    cursor: pointer;
    text-decoration: underline;
}

/* Impact Section - Refined Design */
.impact-section {
    flex: 2;
    min-width: 500px;
}

.impact-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.impact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9370DB, #4a86e8);
}

.impact-header {
    margin-bottom: 22px;
    
}

/* CSS for Barclays logo removed */

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    margin-top: 15px;
}

.fellows-btn, .mentors-btn, .investors-btn, .commitment-btn {
    padding: 7px;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 32px;
    flex: 1 1 auto;
}

/* Handle special case for mentors page with 3 buttons */
.action-buttons:has(.mentors-btn:not(:nth-child(1))) {
    justify-content: center;
}

.action-buttons:has(.mentors-btn:not(:nth-child(1))) .commitment-btn {
    flex-basis: auto;
}

.fellows-btn, .mentors-btn, .investors-btn {
    background-color: #9370DB;
    color: white;
    box-shadow: 0 1px 4px rgba(147, 112, 219, 0.15);
}

.mentors-btn {
    opacity: 0.9;
}

.investors-btn {
    opacity: 0.85;
}

.commitment-btn {
    background-color: transparent;
    color: #9370DB;
    border: 1px solid #9370DB;
}

.fellows-btn:hover, .mentors-btn:hover, .investors-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(147, 112, 219, 0.2);
    background-color: #8064c9;
}

.commitment-btn:hover {
    transform: translateY(-1px);
    background-color: rgba(147, 112, 219, 0.05);
}

.fellows-btn i, .mentors-btn i, .investors-btn i, .commitment-btn i {
    font-size: 0.8rem;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 28px 0;
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.footer-link-item {
    font-size: 0.75rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 4px 0;
}

/* Reset dividers on desktop */
.footer-link-item:not(:last-child)::after {
    content: none;
    display: none;
}

/* Schedule Section */
.schedule-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.schedule-header h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-view-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.schedule-day-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.schedule-day-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 18px;
    margin-top: 8px;
}

.timeline-item {
    display: flex;
    gap: 14px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.timeline-time {
    width: 50px;
    font-size: 0.75rem;
    color: #666;
    flex-shrink: 0;
    font-weight: 500;
}

.timeline-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.timeline-location, .timeline-facilitator {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 1px;
}

.timeline-description {
    font-size: 0.75rem;
    color: #555;
    margin-top: 4px;
    line-height: 1.4;
}

/* Enhanced Gallery Styles */
.impact-gallery-container {
    margin-bottom: 22px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.impact-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.impact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0;
}

/* First image - large feature image */
.impact-img:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    object-position: center 25%;
}

/* Second image - vertical rectangle */
.impact-img:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
    object-position: center 20%;
}

/* Third image - small square */
.impact-img:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    object-position: center 25%;
}

/* Fourth image - small square */
.impact-img:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    object-position: center 25%;
}

.impact-img:hover {
    transform: scale(1.03);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.75) 100%);
    padding: 10px 15px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.gallery-info {
    color: white;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.gallery-photos-btn {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-width: fit-content;
}

.gallery-photos-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.gallery-photos-btn i {
    font-size: 0.85rem;
}

.gallery-location, .gallery-date {
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    text-align: left;
}

.gallery-location {
    font-weight: 500;
}

.gallery-date {
    font-weight: 400;
    opacity: 0.9;
}

.gallery-details-item {
    display: flex;
    flex-direction: column;
}

.gallery-details-item:first-child {
    max-width: 60%;
}

.gallery-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-value {
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.gallery-map-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.gallery-map-link:hover {
    color: #fff;
    transform: translateX(2px);
}

.gallery-map-link i {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.gallery-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.gallery-link:hover {
    color: #fff;
    transform: translateX(2px);
}

.gallery-link i {
    font-size: 0.85rem;
}

/* Info Links Container */
.info-links-container {
    margin-bottom: 28px;
}

.info-links-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9370DB;
    margin-bottom: 12px;
}

.info-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.info-link {
    font-size: 0.85rem;
    color: #4a86e8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.info-link:hover {
    color: #9370DB;
    transform: translateX(2px);
}

.info-link i {
    font-size: 0.9rem;
    color: #4a86e8;
}

/* Event Details Container - Redesigned */
.event-details-container {
    margin-bottom: 32px;
    position: relative;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    border-left: none;
}

.event-details-row {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
    position: relative;
    align-items: flex-start;
}

.event-details-row:last-child {
    margin-bottom: 0;
}

.event-details-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #eee;
}

.event-detail {
    flex: 1;
    min-width: 200px;
}

.detail-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9370DB;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.detail-value {
    display: block;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 400;
}

.map-link {
    font-size: 0.85rem;
    color: #4a86e8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
}

.map-link:hover {
    color: #9370DB;
    transform: translateX(2px);
}

.map-link i {
    font-size: 0.85rem;
    color: #4a86e8;
}

.detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.detail-link {
    font-size: 0.85rem;
    color: #4a86e8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
}

.detail-link:hover {
    color: #9370DB;
    transform: translateX(2px);
}

.detail-link i {
    font-size: 0.9rem;
    color: #4a86e8;
}

/* Mobile Menu Button Styles */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Navigation Optimization */
@media (max-width: 768px) {
    /* Hide main navbar on all mobile devices */
    .main-navbar {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Optimize program bar for mobile */
    .program-bar {
        position: sticky;
        top: 0;
        z-index: 100;
        height: 48px;
        padding: 0 12px;
        flex-direction: row;
        justify-content: space-between;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .program-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 5px;
    }
    
    .program-title {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .program-date {
        font-size: 0.7rem;
    }
    
    /* Mobile menu dropdown */
    .program-actions {
        display: flex;
        position: absolute;
        top: 48px;
        right: 0;
        background-color: #41b8c2;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        width: auto;
        min-width: 200px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
        padding-right: 0;
    }
    
    /* Handle the top bar buttons vs dropdown items */
    .program-actions > a:not(.notification-btn):not(.help-btn) {
        display: none; /* Hide all but notification and help in the top bar */
    }
    
    .program-actions.mobile-menu-open > a:not(.notification-btn):not(.help-btn) {
        display: flex; /* Show in dropdown when menu is open */
    }
    
    .program-actions.mobile-menu-open {
        max-height: 300px;
        overflow-y: auto;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    
    /* Show all program buttons in dropdown */
    .program-action-btn {
        display: flex !important;
    }
    
    /* Top bar notification and help buttons */
    .notification-btn, .help-btn {
        position: static;
        display: flex !important;
        align-items: center;
        height: 48px;
        padding: 0 8px;
        border-bottom: none;
        width: auto;
        background: transparent;
    }
    
    .notification-btn i, .help-btn i {
        margin-left: 0;
        font-size: 0.85rem;
    }
    
    /* Create a container for top bar action buttons */
    .program-bar {
        position: relative;
    }
    
    .program-bar::after {
        content: '';
        display: table;
        clear: both;
    }
    
    /* Rest of mobile styles */
    main {
        padding: 0 15px;
        margin-top: 25px;
        width: 100%;
        min-height: 100vh;
    }
    
    body {
        min-height: 100vh;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Hide sidebar */
    .profile-section {
        display: none;
    }
    
    /* Make impact section take full width */
    .impact-section {
        min-width: 100%;
        flex: 1;
        margin: 0;
        width: 100%;
    }
    
    /* Adjust content padding */
    .impact-content {
        padding: 22px 18px;
        width: 100%;
    }
    
    /* Enhance text-only links to look more interactive */
    .footer-links {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px 5px;
        margin: 12px 0;
        width: 100%;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        overflow-x: auto; /* Allow scrolling if needed */
        -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
        scrollbar-width: none; /* Hide scrollbar in Firefox */
    }
    
    .footer-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar in Chrome/Safari */
    }
    
    .footer-link-item {
        flex: 0 0 auto;
        font-size: 0.65rem;
        color: #9370DB;
        font-weight: 500;
        display: flex;
        align-items: center;
        padding: 3px 7px;
        margin: 0 1px;
        white-space: nowrap;
        border-radius: 3px;
        transition: all 0.2s ease;
    }
    
    .footer-link-item:active {
        background-color: rgba(147, 112, 219, 0.1);
        transform: scale(0.97);
    }
    
    .footer-link-item .link-highlight {
        color: #9370DB;
        font-weight: 600;
    }
    
    /* Hide all icons in footer links on mobile */
    .footer-link-item i {
        display: none;
    }
    
    /* Specifically target common link text to make them even more compact */
    .footer-link-item:nth-child(1) {
        max-width: 45px; /* FAQ is short */
    }
    
    .footer-link-item:nth-child(2) {
        max-width: 70px; /* 194 Photos */
    }
    
    /* Add these styles to all templates/pages */
    body.mentors-page .footer-links,
    body.single-image-page .footer-links,
    body.pre-program-page .footer-links {
        /* Same styles as above to ensure consistency */
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px 5px;
    }
    
    /* Make action buttons more compact to fit on one line */
    .action-buttons {
        gap: 5px;
        justify-content: center;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto; /* Allow horizontal scrolling as fallback if needed */
        padding-bottom: 5px; /* Add padding for scrollbar if it appears */
        -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
        scrollbar-width: none; /* Hide scrollbar in Firefox */
    }
    
    .action-buttons::-webkit-scrollbar {
        display: none; /* Hide scrollbar in Chrome/Safari */
    }
    
    .fellows-btn, .mentors-btn, .investors-btn, .commitment-btn {
        font-size: 0.65rem;
        padding: 0 8px;
        min-width: 0;
        height: 32px;
        flex: 1 0 auto;
        max-width: 25%; /* Ensure each button takes up to 25% of the width */
    }
    
    .fellows-btn i, .mentors-btn i, .investors-btn i, .commitment-btn i {
        font-size: 0.7rem;
        margin-right: 2px;
    }
    
    /* Adjust navbar for tablets */
    .main-navbar {
        padding: 0 12px;
    }
    
    .navbar-menu {
        gap: 15px !important;
    }
    
    .navbar-center .navbar-menu a {
        font-size: 0.8rem;
    }
    
    .navbar-eco-btn {
        margin-right: 15px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    /* Adjust header for tablets */
    header {
        padding: 8px 12px;
    }
    
    h1 {
        font-size: 1.1rem;
    }
    
    .search-input {
        width: 85%;
        font-size: 0.8rem;
    }
    
    .ask-button {
        font-size: 0.7rem;
        right: 45px;
    }
    
    .main-nav a {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    /* Adjust gallery overlay for tablets */
    .gallery-overlay {
        padding: 8px 12px;
    }
    
    .gallery-location, .gallery-date {
        font-size: 0.7rem;
    }
    
    .gallery-photos-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
        gap: 5px;
    }
    
    .gallery-photos-btn i {
        font-size: 0.8rem;
    }
    
    .main-navbar {
        height: 42px;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-eco-btn {
        padding: 0 8px;
        font-size: 0.8rem;
    }
    
    .navbar-center .navbar-menu {
        display: none;
    }
    
    .program-bar {
        padding: 0 15px;
        height: 38px;
    }
    
    .program-info {
        display: flex;
        flex-direction: row;
        align-items: baseline;
    }
    
    .program-title {
        font-size: 0.85rem;
    }
    
    .program-date {
        font-size: 0.75rem;
    }
    
    .program-actions {
        gap: 0;
    }
    
    .program-action-btn {
        font-size: 0.75rem;
        padding: 0 8px;
    }
    
    .program-action-btn i {
        font-size: 0.7rem;
    }
    
    .program-logo-section {
        padding: 20px 0;
    }
    
    .program-logo {
        max-width: 350px;
    }
    
    .navbar-search {
        padding: 0 8px;
        font-size: 0.8rem;
    }
    
    /* Program action button styles */
    .program-action-btn {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: nowrap;
        font-size: 0.75rem;
        justify-content: flex-start;
    }
    
    .program-action-btn:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    /* Add vertical separators between footer links for mobile */
    .footer-link-item:not(:last-child)::after {
        content: "|";
        padding: 0 2px;
        color: #ccc;
        position: relative;
        right: -4px;
        display: inline-block;
    }
    
    .impact-gallery {
        aspect-ratio: 16/9;
        max-height: 280px;
    }
    
    .impact-gallery-container {
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }
    
    .impact-gallery {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    /* Additional styles specific to small phones */
    .program-bar {
        height: 56px;
        padding: 5px 10px;
    }
    
    .program-info {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
    }
    
    .program-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .program-date {
        font-size: 0.65rem;
    }
    
    /* Mobile dropdown adjustments */
    .program-actions {
        top: 56px;
        right: 0;
        width: 100%;
        min-width: unset;
    }
    
    .program-actions.mobile-menu-open {
        max-height: calc(100vh - 56px);
    }
    
    .program-action-btn {
        padding: 14px 15px;
        font-size: 0.85rem;
    }
    
    .notification-btn, .help-btn {
        padding: 0 8px;
    }
    
    .notification-btn i, .help-btn i {
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 5px 8px;
    }
    
    /* Further reduce padding */
    .impact-content {
        padding: 18px 15px;
        border-radius: 8px;
    }
    
    /* Fix for button layout - make them fit in a 2×2 grid */
    .action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 5px;
        margin: 10px 0;
        padding: 0;
        width: 100%;
    }
    
    .fellows-btn, .mentors-btn, .investors-btn, .commitment-btn {
        font-size: 0.6rem;
        padding: 0;
        height: 28px;
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    
    .fellows-btn i, .mentors-btn i, .investors-btn i, .commitment-btn i {
        font-size: 0.55rem;
        margin-right: 2px;
    }
    
    /* More compact footer links */
    .footer-links {
        padding: 8px 0;
        gap: 0;
    }
    
    .footer-link-item {
        font-size: 0.58rem;
        padding: 2px 2px;
        margin: 0;
    }
    
    /* Smaller text for longer items */
    .footer-link-item:nth-child(3), /* Give Gratitude */
    .footer-link-item:nth-child(4), /* Unreasonable Team */
    .footer-link-item:nth-child(5) { /* Report Misconduct */
        font-size: 0.52rem;
        letter-spacing: -0.02em;
    }
    
    /* Smaller vertical separators for smaller screens */
    .footer-link-item:not(:last-child)::after {
        padding: 0 1px;
        right: -2px;
        color: #ddd;
    }
    
    .impact-gallery {
        aspect-ratio: 16/9;
        max-height: 220px;
    }
    
    .impact-gallery-container {
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }
    
    .impact-gallery {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

@media (max-width: 375px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .main-navbar {
        padding: 0 8px;
        height: 38px;
    }
    
    .navbar-container {
        padding: 0 8px;
    }
    
    .navbar-brand {
        font-size: 0.8rem;
        padding: 0 6px;
    }
    
    .navbar-eco-btn {
        margin-right: 5px;
        padding: 2px 4px;
        font-size: 0.7rem;
    }
    
    .navbar-center .navbar-menu {
        gap: 8px !important;
    }
    
    .navbar-center .navbar-menu a {
        font-size: 0.7rem;
    }
    
    .navbar-right {
        gap: 6px;
    }
    
    .navbar-admin {
        display: none;
    }
    
    .navbar-search {
        padding: 0 6px;
        font-size: 0.7rem;
    }
    
    .events-card {
        padding: 12px;
    }
    
    .impact-gallery {
        width: 100%;
    }
    
    .gallery-location, .gallery-date {
        font-size: 0.65rem;
    }
    
    .impact-content {
        padding: 10px 8px;
        width: 100%;
    }
    
    .gallery-overlay {
        padding: 6px 8px;
    }
    
    .impact-gallery-container {
        margin-bottom: 14px;
        width: 100%;
    }
    
    .gallery-info {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .gallery-details {
        align-items: center;
        max-width: 100%;
    }
    
    .gallery-location, .gallery-date {
        font-size: 0.65rem;
        text-align: center;
    }
    
    .gallery-photos-btn {
        font-size: 0.65rem;
        padding: 4px 8px;
        align-self: center;
        width: auto;
        min-width: 120px;
        justify-content: center;
        gap: 4px;
        height: 26px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }
    
    .gallery-photos-btn i {
        font-size: 0.7rem;
    }
    
    /* Even smaller 2×2 grid for the tiniest screens */
    .action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 4px;
        margin: 8px 0;
        padding: 0;
    }
    
    .fellows-btn, .mentors-btn, .investors-btn, .commitment-btn {
        font-size: 0.5rem;
        height: 24px;
        width: 100%;
        padding: 0;
        border-radius: 3px;
    }
    
    .fellows-btn i, .mentors-btn i, .investors-btn i, .commitment-btn i {
        font-size: 0.45rem;
    }
    
    /* Ultra-compact footer links for tiny screens */
    .footer-links {
        padding: 5px 0;
        justify-content: space-around;
    }
    
    .footer-link-item {
        font-size: 0.44rem;
        padding: 2px 1px;
        margin: 0;
        letter-spacing: -0.05em;
    }
    
    /* Extra tiny text for longer link items */
    .footer-link-item:nth-child(3), /* Give Gratitude */
    .footer-link-item:nth-child(4), /* Unreasonable Team */
    .footer-link-item:nth-child(5) { /* Report Misconduct */
        font-size: 0.42rem;
        letter-spacing: -0.05em;
        max-width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Tiny vertical separators for the smallest screens */
    .footer-link-item:not(:last-child)::after {
        padding: 0;
        right: -1px;
        font-size: 0.4rem;
    }
    
    .impact-gallery {
        aspect-ratio: 16/9;
        max-height: 180px;
    }
    
    .impact-gallery-container {
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }
    
    .impact-gallery {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

/* Add these base styles to prevent floating issues */
html, body {
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

.schedule-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.schedule-nav-controls {
    display: flex;
    gap: 8px;
}

.prev-btn, .next-btn {
    background-color: white;
    color: #666;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: #f5f5f7;
    color: #9370DB;
}

.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-content {
    flex: 1;
}

.strikethrough {
    text-decoration: line-through;
    color: #999;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.footer-link-item i {
    font-size: 0.8rem;
    color: #9370DB;
}

.link-highlight {
    font-weight: 500;
    color: #9370DB;
}

/* Main Navigation Bar */
.main-navbar {
    background-color: #222;
    border-bottom: none;
    height: 36px;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: 20px;
    align-items: center;
    height: 100%;
}

.navbar-right {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    height: 100%;
    padding: 0 8px;
    transition: background-color 0.2s ease;
}

.navbar-brand:hover {
    background-color: #333;
}

.navbar-nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav-item {
    height: 100%;
}

.navbar-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0 8px;
    height: 100%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-nav-link:hover {
    background-color: #333;
    color: #41b8c2;
}

.navbar-search {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 0 8px;
    height: 24px;
    font-size: 0.7rem;
    background-color: #333;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-left: 5px;
}

.navbar-search i {
    margin-right: 4px;
    font-size: 0.65rem;
}

.navbar-search:hover {
    background-color: #444;
}

.navbar-eco-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #41b8c2;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0 8px;
    height: 100%;
    transition: background-color 0.2s ease;
}

.navbar-eco-btn:hover {
    background-color: #333;
}

.navbar-admin {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 0.7rem;
    padding: 0 8px;
    height: 100%;
    transition: background-color 0.2s ease;
}

.navbar-admin:hover {
    background-color: #333;
}

/* Program Bar */
.program-bar {
    background-color: #41b8c2;
    color: white;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}

.program-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-left: 20px;
}

.program-title {
    font-size: 0.85rem;
    font-weight: 500;
}

.program-date {
    font-size: 0.75rem;
    opacity: 0.85;
}

.program-actions {
    display: flex;
    gap: 0;
    align-items: center;
    height: 100%;
    padding-right: 20px;
}

.program-action-btn {
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    background-color: transparent;
    transition: background-color 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.program-action-btn i {
    margin-left: 4px;
    font-size: 0.7rem;
}

.program-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-btn, .help-btn {
    padding: 0 10px;
    font-size: 0.85rem;
}

.notification-btn i, .help-btn i {
    margin-left: 0;
    font-size: 0.85rem;
}

/* Program Logo Section */
.program-logo-section {
    text-align: center;
    padding: 15px 0;
    background-color: transparent;
    border-bottom: 1px solid #eee;
}

.program-logo-container {
    display: inline-block;
}

.program-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .program-logo-section {
        padding: 20px 0;
    }
    
    .program-logo {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .program-logo-section {
        padding: 10px 0;
        margin-top: 0;
        border-top: none;
    }
    
    .program-logo {
        height: 60px;
        max-width: none;
    }
}

/* Logo Fallback */
.program-logo-fallback {
    text-align: center;
    padding: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.unreasonable-text {
    font-size: 2.5rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    line-height: 1;
}

.impact-text {
    font-size: 4.2rem;
    font-weight: 700;
    color: #29aae1;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 5px;
}

.barclays-text {
    font-size: 0.9rem;
    color: #29aae1;
    letter-spacing: 0.5px;
    text-align: right;
    margin-right: 10px;
    margin-top: -5px;
    margin-bottom: 15px;
}

.barclays-text i {
    font-size: 1rem;
    color: #29aae1;
}

.location-text {
    font-size: 1.5rem;
    color: #555;
    letter-spacing: 2px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .unreasonable-text {
        font-size: 2rem;
    }
    
    .impact-text {
        font-size: 3.5rem;
    }
    
    .barclays-text {
        font-size: 0.8rem;
    }
    
    .location-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .unreasonable-text {
        font-size: 1.6rem;
    }
    
    .impact-text {
        font-size: 2.8rem;
    }
    
    .barclays-text {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    
    .location-text {
        font-size: 1rem;
    }
}

/* Responsive Styles for Navbar */
@media (max-width: 768px) {
    .navbar-center {
        display: none;
    }
    
    .navbar-brand {
        font-size: 0.8rem;
    }
    
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-search {
        background-color: #333;
    }
}

@media (max-width: 480px) {
    .main-navbar {
        height: 32px;
        background-color: #222;
    }
    
    .navbar-brand {
        font-size: 0.75rem;
        padding: 0 6px;
    }
    
    .navbar-admin {
        font-size: 0.65rem;
        padding: 0 6px;
    }
    
    .navbar-search {
        height: 22px;
        font-size: 0.65rem;
        padding: 0 6px;
        background-color: #333;
    }
    
    .navbar-search i {
        font-size: 0.6rem;
    }
    
    .navbar-eco-btn {
        font-size: 0.65rem;
        padding: 0 6px;
    }
} 