/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    /* Colors - Marine Theme */
    --primary-color: #004e92;
    /* Deep Ocean Blue */
    --secondary-color: #00b4db;
    /* Cyan / Water */
    --accent-color: #f09819;
    /* Sun / Gold accent */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --footer-bg: #002b4d;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --font-ui: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* =========================================
   2. Layout Utilities
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-content: center;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    font-family: var(--font-ui);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 180, 219, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 40px;
    border-radius: 2px;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
.site-header {
    background: var(--primary-color);
    /* Blue background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1400px;
    /* Allow wider layout */
    margin: 0 auto;
}

.logo-section {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--white);
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: cover;
    margin-top: -25px;
    margin-bottom: -25px;
    margin-left: -10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    color: var(--white);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-main .edition {
    color: #fbbf24;
    /* Amber-400 / Gold */
    font-style: italic;
    font-weight: 400;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
    line-height: 1.3;
    max-width: 320px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
    /* Balanced gap */
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.8rem;
    /* Slightly smaller to fit */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth fluid motion */
    padding: 6px 10px;
    border-radius: 50px;
    /* Fully rounded capsule for fluid look */
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.2px;
}

/* Add Login Button Style */
.btn-login {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.btn-login:hover {
    background: var(--white);
    color: var(--primary-color) !important;
    border-color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-1px);
}

.main-nav a.active {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Premium depth shadow */
    border-radius: 12px;
    min-width: 260px;
    /* Slightly wider */
    display: none;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    padding: 10px;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Invisible bridge */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown-menu li {
    padding: 0;
}

/* Show state */
.dropdown-menu.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    animation: dropdownPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
    transform-origin: top center;
}

.dropdown-menu a {
    color: #34495e;
    padding: 14px 20px;
    font-size: 0.95rem;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.dropdown-menu.wrap-text a {
    white-space: normal;
    line-height: 1.4;
}

/* Accent Bar on Hover */
.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    height: 50%;
    width: 4px;
    background-color: var(--secondary-color);
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s ease;
}

.dropdown-menu a:last-child {
    margin-bottom: 0;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, #f4f8fc 0%, transparent 100%);
    color: var(--primary-color);
    padding-left: 28px;
    /* Smooth slide right */
}

.dropdown-menu a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

@keyframes dropdownPop {
    from {
        opacity: 0;
        transform: scaleY(0.9) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

/* =========================================
   11. Schedule Table (Modern)
   ========================================= */
.schedule-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.table-modern-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    overflow: hidden;
    /* For rounded corners */
    border: 1px solid #edf2f7;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* prevent squishing */
}

.table-modern thead {
    background: var(--primary-color);
    color: #ffffff;
}

.table-modern th {
    padding: 18px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.table-modern td {
    padding: 16px 24px;
    color: #4a5568;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    vertical-align: middle;
}

.table-modern tr:last-child td {
    border-bottom: none;
}

/* Row Hover Effect */
.table-modern tbody tr {
    transition: background-color 0.2s ease;
}

.table-modern tbody tr:hover {
    background-color: #f8fafc;
}

/* Day/Session Header Rows */
.table-row-header {
    background-color: #f1f5f9;
    color: #2d3748;
    font-weight: 700;
}

.table-row-header td {
    padding-top: 25px;
    padding-bottom: 15px;
    font-size: 1.05rem;
    color: var(--primary-color);
    border-bottom: 2px solid #e2e8f0;
}

/* Cell Specifics */
.col-time {
    width: 150px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.col-speaker {
    color: #718096;
    font-weight: 500;
    width: 30%;
}

/* Type Indicators */
.row-break {
    background-color: #fcfcfc;
    font-style: italic;
    color: #888;
}

.row-break td {
    border-left: 4px solid #cbd5e0;
}

@media (max-width: 768px) {
    .table-modern-container {
        overflow-x: auto;
    }
}

.nav-toggle,
.nav-toggle-label {
    display: none !important;
    /* Completely hidden on desktop and tablet */
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 78, 146, 0.4), rgba(0, 180, 219, 0.4)), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    /* dynamic height */
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    /* Optional: If user provides an image, we can use url('path.jpg') */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Light textured overlay example */
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-date {
    font-size: 1.2rem;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* =========================================
   5. Components (Cards, Timeline)
   ========================================= */
/* About */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--light-bg);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    transition: 0.3s;
}

.stat-card:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Speakers */
.speaker-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.speaker-img-placeholder {
    height: 250px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 4rem;
}

.speaker-info {
    padding: 20px;
    text-align: center;
}

.speaker-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.speaker-title {
    font-style: italic;
    color: #666;
    margin-bottom: 5px;
}

.speaker-univ {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Timeline */
/* =========================================
   7. Timeline Section (Redesigned)
   ========================================= */
.timeline-section {
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.timeline-vertical {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Central Line */
.timeline-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    /* Content on sides */
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

/* Date Circle */
.timeline-date-circle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: #fff;
    border: 3px solid #00abd2;
    /* Cyan/Blue */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 8px #fff;
    /* White spacing around circle */
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-date-circle span {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.timeline-date-circle small {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.timeline-date-circle.highlight {
    background: #f59e0b;
    /* Orange/Gold */
    border-color: #f59e0b;
    color: #fff;
    box-shadow: 0 0 0 8px #fff, 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Content Blocks */
.timeline-content,
.timeline-dummy {
    width: 42%;
}

.timeline-content h3 {
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Alignments */
.content-left {
    text-align: right;
    padding-right: 30px;
}

.content-right {
    text-align: left;
    padding-left: 30px;
}

.highlight-text h3 {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-vertical::before {
        left: 30px;
        /* Move line to left */
    }

    .timeline-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .timeline-dummy {
        display: none;
    }

    .timeline-date-circle {
        left: 30px;
        width: 70px;
        height: 70px;
        transform: none;
        box-shadow: 0 0 0 5px #fff;
    }

    .timeline-date-circle span {
        font-size: 1.2rem;
    }

    .timeline-date-circle small {
        font-size: 0.75rem;
    }

    .timeline-content {
        width: 100%;
        padding-left: 80px !important;
        /* Make space for circle */
        padding-right: 0 !important;
        text-align: left !important;
        margin-top: -55px;
        /* Pull text up aligns with circle */
        min-height: 70px;
        /* Min height matches circle */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}




/* =========================================
   6. Footer
   ========================================= */
.site-footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 60px 0 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* =========================================
   7. Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {

    /* General Mobile Adjustments */
    .container {
        padding: 0 15px;
    }

    body {
        font-size: 14px;
    }

    .site-header {
        padding: 0;
    }

    .header-container {
        padding: 12px 15px;
        position: relative;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .logo-link {
        gap: 10px;
    }

    .logo-img {
        height: 55px;
        width: auto;
        margin: 0;
    }

    .logo-text {
        display: none;
    }

    .logo-main {
        font-size: 1.5rem;
    }

    .logo-sub {
        display: none;
    }

    .main-nav {
        width: 100%;
        position: relative;
    }

    .nav-toggle-label {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.18);
        border-radius: 16px;
        z-index: 1002;
        cursor: pointer;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        width: 24px;
        height: 2px;
        background: #ffffff;
        border-radius: 1px;
        position: absolute;
        left: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-toggle-label span {
        position: relative;
    }

    .nav-toggle-label span::before {
        content: '';
        top: -8px;
    }

    .nav-toggle-label span::after {
        content: '';
        top: 8px;
    }

    .nav-list {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
        width: 100%;
        background: #f9fafb;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s ease, opacity 0.35s ease, max-height 0.35s ease;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
        z-index: 1000;
        border-top: 1px solid rgba(229, 231, 235, 1);
    }

    .nav-toggle:checked ~ .nav-list {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block;
        padding: 16px 22px;
        color: #111827 !important;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;
        letter-spacing: 0.1px;
    }

    .nav-list a:hover,
    .nav-list a.active {
        background: rgba(0, 78, 146, 0.1);
        color: var(--primary-color) !important;
    }

    .nav-toggle:checked ~ .nav-toggle-label span {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg) translate(0, 0);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg) translate(0, 0);
        top: 0;
    }

    .dropdown-menu {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 0;
        margin-top: 0;
        animation: none;
        transform: none;
        display: none;
        opacity: 1;
        pointer-events: auto;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu a {
        padding: 14px 30px;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.95);
        color: #111827 !important;
        border-left: 4px solid rgba(0, 78, 146, 0.15);
    }

    .dropdown-menu a:hover {
        background: rgba(0, 78, 146, 0.08);
        color: var(--primary-color) !important;
    }

    #search-btn {
        display: none !important;
    }

    #search-form {
        display: none !important;
    }

    .grid-2-col,
    .grid-3-col,
    .footer-content,
    .main-body-grid {
        grid-template-columns: 1fr !important;
    }

    .hero {
        height: 55vh;
        min-height: 360px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-date {
        font-size: 0.95rem;
        padding: 8px 14px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .date-circle {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .date-content,
    .timeline-item:nth-child(even) .date-content {
        margin: 0;
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .main-nav ul {
        gap: 3px;
    }

    .main-nav a {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .logo-main {
        font-size: 1.8rem;
    }

    .logo-sub {
        font-size: 0.75rem;
    }

    .logo-img {
        height: 80px;
        margin-top: -20px;
        margin-bottom: -20px;
    }

    /* Ensure horizontal nav on tablet - override mobile styles */
    .nav-toggle-label {
        display: none !important;
    }

    .nav-list {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        max-height: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-top: none !important;
        width: auto !important;
        padding: 0 !important;
    }

    .nav-list li {
        text-align: left !important;
        border-bottom: none !important;
        width: auto !important;
    }

    .nav-list a {
        display: inline-block !important;
        padding: 6px 10px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        background: transparent !important;
    }

    .nav-list a:hover,
    .nav-list a.active {
        background: rgba(255, 255, 255, 0.15) !important;
        color: var(--white) !important;
    }
}

/* =========================================
   8. Header Extra (Search & Login)
   ========================================= */
/* Login Button */
.main-nav .btn-login {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 24px;
    border-radius: 50px;
    /* Full capsule */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background */
    margin-left: 5px;
}

.main-nav .btn-login:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Search Icon */
#search-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

#search-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(10deg);
}

#search-form {
    display: none;
    position: absolute;
    right: 30px;
    top: 100%;
    margin-top: 15px;
    background: var(--white);
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 2000;
    width: 300px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#search-form input[type='text'] {
    width: 70%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    color: #333;
    background: #fff;
}

#search-form button {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-left: 5px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/* =========================================
   9. Search Results Page
   ========================================= */
.search-results .result-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.search-results .result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.search-results h3 {
    margin-bottom: 5px;
}

.search-results h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}

.search-results h3 a:hover {
    color: var(--secondary-color);
}

.search-results .meta-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

/* =========================================
   10. Previous Events
   ========================================= */
.pe-wrapper {
    background-color: #ffffff;
    min-height: 80vh;
    padding: 60px 0;
}

.pe-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.pe-header {
    margin-bottom: 40px;
}

.pe-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.pe-subtitle {
    color: #555;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.pe-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.pe-card:hover {
    border-color: #b3d7ff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.pe-card-title {
    color: #0056b3;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pe-meta {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.5;
}

.pe-meta strong {
    color: #222;
    font-weight: 600;
}

.pe-desc {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pe-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    border: 1px solid #0056b3;
    border-radius: 50px;
    color: #0056b3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
}

.pe-btn:hover {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-1px);
}

/* =========================================
   12. Dashboard Profile (Redesign)
   ========================================= */
.dashboard-profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f1f5f9;
    background: #fcfcfc;
}

.profile-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-content {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 40px;
}

/* Photo Section */
.profile-photo-section {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #f1f5f9;
    padding-right: 40px;
}

.profile-photo-box {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    color: #cbd5e0;
    font-size: 4rem;
}

.btn-upload-photo {
    background: #fff;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-upload-photo:hover {
    background: #f1f5f9;
    color: #2d3748;
    border-color: #a0aec0;
}

/* Info Section */
.profile-info-section {
    flex: 1;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.info-group {
    margin-bottom: 5px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    display: block;
    width: 100%;
}

.info-value.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        gap: 30px;
    }

    .profile-photo-section {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 30px;
        width: 100%;
        flex: none;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Premium Styles */
.page-header-premium {
    position: relative;
    color: white;
    background: url('https://images.unsplash.com/photo-1582967634861-fceeb80352ef?auto=format&fit=crop&q=80') center/cover;
    border-bottom: 0;
    margin-bottom: 0;
    text-align: center;
}

.page-header-premium .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 58, 96, 0.7);
    z-index: 0;
}

.page-header-premium .container {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.page-header-premium h1 {
    color: white !important;
    font-size: 3rem !important;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: none !important;
}

.page-header-premium p {
    font-size: 1.2rem;
    color: #e2e8f0;
}

/* Premium Card Styles */
.premium-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 35px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.premium-card h2,
.premium-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    word-break: normal;
}

.premium-card p,
.premium-card a {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
}

.premium-card a {
    display: inline;
    max-width: 100%;
}

.premium-section {
    background: #f7fafc;
    padding: 60px 0;
}

/* =========================================
   13. Contributing Institutions
   ========================================= */
.institutions-section {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #f1f5f9;
}

.institutions-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

.institutions-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.institutions-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.inst-logo {
    height: 75px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.inst-logo.logo-lg {
    height: 115px; /* Boost height for visually smaller logos */
}

.inst-logo.logo-wide-lg {
    height: 90px;
    max-width: 300px; /* Allow wider logos to expand */
}

.inst-logo:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .institutions-section {
        padding: 40px 0;
    }
    
    .institutions-logos {
        gap: 30px;
    }
    
    .inst-logo {
        max-height: 60px;
        max-width: 130px;
    }
}