:root {
    --main-theme-blue: #3b6ba8;
    --main-theme-dark-blue: #1A2E44;
    --main-accent-gold: #FFC107;
    --main-secondary-green: #28A745;
    --light-bg-section: #ffffff;
    --text-dark: #334155;
    --text-light: #eceff1;
    --border-light: #e0e4e8;
    --banner-gradient-education: linear-gradient(135deg, #1167b1 0%, #46a0e0 100%);
    --navbar-height: 50px;
    --banner-height: 450px;
    

}


@font-face {
    font-family: 'Myriad Pro';
    src: local('Myriad Pro Regular'), local('MyriadPro-Regular');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro';
    src: local('Myriad Pro Bold'), local('MyriadPro-Bold');
    font-weight: bold;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Myriad Pro';
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-size: 18px;
}

.horizontal-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: var(--navbar-height);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.horizontal-nav-container {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-nav-container::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.nav-item a {
    display: block;
    padding: 18px 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Myriad Pro';
}

.nav-item:hover a {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-2px);
}


.home-nav a { background: #8e44ad; }
.patient-nav a { background: #158481; }
.education-nav a { background: #144984; }
.consultancy-nav a { background: #9b1c25; }
.research-nav a { background: #5b5aa7; }
.ophthalmic-nav a { background: #0c628a; }
.information-nav a { background: #b97e2b; }
.recognition-nav a { background: #9b59b6; }
.events-nav a { background: #e67e22; }

.nav-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    font-family: 'Myriad Pro';
}

body.education-page .education-nav a {
    transform: translateY(-1px);
}


.nav-item.active a::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 6px;
    border-radius: 2px;
    animation: underlineSlide 0.4s ease-in-out;
}

@keyframes underlineSlide {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}


.fixed-banner {
    position: relative;
    width: 100%;
    height: var(--banner-height);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.banner-container {
    display: flex;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.banner-left-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.banner-left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-right-content {
    flex: 1;
    background: var(--banner-gradient-education);
    color: #ffffff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    position: relative;
    font-family: 'Myriad Pro';
    font-size: 18px;
}

.banner-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Myriad Pro';
}

.highlight {
    color: var(--main-accent-gold);
}

.banner-description {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Myriad Pro';
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 15px;
    width: 100%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(17, 103, 177, 0.2);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Myriad Pro';
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 103, 177, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.stat-icon {
    font-size: 1.4rem;
    color: var(--main-accent-gold);
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-family: 'Myriad Pro';
}

.stat-label {
    font-size: 14px;
    color: #ffffff;
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    font-family: 'Myriad Pro';
}

.main-content {
    margin-top: 0;
    padding: 0;
    background: #ffffff;
}

.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.sidebar-menu {
    flex: 0 0 280px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px 0;
    height: fit-content;
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.menu-header {
    padding: 0 30px 20px;
    border-bottom: 2px solid var(--main-accent-gold);
    margin-bottom: 20px;
}

.menu-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--main-theme-dark-blue);
    margin: 0;
    font-family: 'Myriad Pro';
}

.menu-nav {
    padding: 0 20px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 5px;
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    gap: 12px;
    font-family: 'Myriad Pro', sans-serif;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--main-accent-gold);
    border-radius: 2px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-link:hover::before,
.menu-item.active .menu-link::before {
    transform: scaleY(1);
}

.menu-link:hover {
    background: rgba(59, 107, 168, 0.1);
    color: var(--main-theme-blue);
    transform: translateX(5px);
}

.menu-item.active .menu-link {
    background: var(--main-theme-blue);
    color: #ffffff;
    transform: translateX(5px);
}

.menu-item.active .menu-link::before {
    background: var(--main-accent-gold);
}

.menu-text {
    flex: 1;
}

.submenu {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding-left: 0;
}

.menu-item.expanded > .submenu {
    display: block;
    max-height: 500px;
}

.submenu-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 8px;
    color: var(--main-accent-gold);
    font-size: 14px;
    transition: transform 0.3s;
    user-select: none;
}

.submenu-toggle i {
    transition: transform 0.3s;
}

.menu-item.expanded > .menu-link > .submenu-toggle i {
    transform: rotate(180deg);
}

.content-area {
    flex: 1;
    background: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Myriad Pro';
    font-size: 18px;
    overflow-x: hidden;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--main-theme-dark-blue);
    margin-bottom: 15px;
    font-family: 'Myriad Pro';
}

.section-underline {
    width: 60px;
    height: 4px;
    background: var(--main-accent-gold);
    border-radius: 2px;
}

.section-content {
    line-height: 1.8;
}

.section-content p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-family: 'Myriad Pro';
}

.candidates-trained-section {
    margin-top: 30px;
}

.table-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--main-theme-dark-blue);
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Myriad Pro';
}


.table-section {
    margin-bottom: 40px;
    background: var(--light-bg-section);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.section-heading {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--main-theme-blue);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Myriad Pro';
    border-bottom: 2px solid var(--main-accent-gold);
    padding-bottom: 10px;
}

.events-section {
    padding: 0;
    background: #ffffff;
    margin: 0 0 40px 0; 
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-item {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    font-family: 'Myriad Pro';
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
}

.event-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--main-theme-dark-blue);
    margin: 0 0 15px 0;
    text-align: center;
    line-height: 1.2;
}

.event-date {
    display: block;
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 500;
}

.event-images {
    display: grid;
    gap: 15px;
    margin: 30px auto;
    align-items: center;
    justify-content: center;
}

.event-images.one-image {
    grid-template-columns: 1fr;
    max-width: 600px;
}

.event-images.two-images {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

.event-images.three-images {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
}

.event-images.four-images {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
}

.event-images.one-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.event-images.two-images img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.event-images.three-images img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.event-images.four-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.event-images img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.gallery-event-section {
    margin: 40px 0;
    padding: 0;
    background: #ffffff;
}

.gallery-event-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-event-section .event-item {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.gallery-event-section .event-heading {
    font-size: 18px;
    font-weight: 600;
    color: black;
    margin: 0 0 25px 0;
    text-align: center;
    line-height: 1.2;
}

.gallery-event-section .event-images {
    display: grid;
    gap: 12px;
    margin: 25px 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-event-section .event-images.four-images {
    grid-template-columns: repeat(4, 1fr);
    max-height: 250px;
}

.gallery-event-section .event-images.five-images {
    grid-template-columns: repeat(5, 1fr);
    max-height: 220px;
}

.gallery-event-section .event-images.three-images {
    grid-template-columns: repeat(3, 1fr);
    max-height: 280px;
}

.gallery-event-section .event-images.two-images {
    grid-template-columns: repeat(2, 1fr);
    max-height: 300px;
}

.gallery-event-section .event-images.one-image {
    grid-template-columns: 1fr;
    max-height: 400px;
}

.gallery-event-section .event-images a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-event-section .event-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-event-section .event-images a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-event-section .event-images a:hover img {
    transform: scale(1.05);
}

.gallery-event-section .event-content {
    margin-top: 25px;
}

.gallery-event-section .event-content p {
    font-size: 18px;
    line-height: 1.7;
    color: black;
    margin: 0;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .gallery-event-section .event-images.five-images {
        grid-template-columns: repeat(3, 1fr);
        max-height: 280px;
    }
}

@media (max-width: 992px) {
    .gallery-event-section .event-images.four-images,
    .gallery-event-section .event-images.five-images {
        grid-template-columns: repeat(2, 1fr);
        max-height: 300px;
    }
    
    .gallery-event-section .event-images.three-images {
        grid-template-columns: repeat(2, 1fr);
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-event-section .container {
        padding: 0 15px;
    }
    
    .gallery-event-section .event-item {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .gallery-event-section .event-heading {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .gallery-event-section .event-images {
        gap: 8px;
        margin: 20px 0;
    }
    
    .gallery-event-section .event-images.four-images,
    .gallery-event-section .event-images.five-images,
    .gallery-event-section .event-images.three-images,
    .gallery-event-section .event-images.two-images {
        grid-template-columns: repeat(2, 1fr);
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery-event-section .event-images {
        gap: 6px;
        margin: 15px 0;
    }
    
    .gallery-event-section .event-images.four-images,
    .gallery-event-section .event-images.five-images,
    .gallery-event-section .event-images.three-images,
    .gallery-event-section .event-images.two-images {
        grid-template-columns: 1fr 1fr;
        max-height: 200px;
    }
    
    .gallery-event-section .event-images.one-image {
        max-height: 250px;
    }
}
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    position: relative;
    font-size: 18px;
    font-family: 'Myriad Pro';
    margin-top: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-accent-gold) 0%, var(--main-theme-blue) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section h3 {
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--main-accent-gold);
    font-family: 'Myriad Pro';
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--main-accent-gold);
    margin-top: 2px;
    width: 20px;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--main-accent-gold);
    font-size: 18px;
    font-family: 'Myriad Pro';
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 18px;
    font-family: 'Myriad Pro';
}

.footer-links-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: 8px 0;
    font-size: 18px;
    font-family: 'Myriad Pro';
    text-decoration: none;
}

.footer-link:hover {
    color: var(--main-accent-gold);
    transform: translateX(5px);
}

.footer-link i {
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-light);
    font-size: 18px;
    font-family: 'Myriad Pro';
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.menu-link, .nav-item a {
    position: relative;
    overflow: hidden;
}

.content-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-link:focus,
.nav-item a:focus {
    outline: 2px solid var(--main-accent-gold);
    outline-offset: 2px;
}

@media (max-width: 1200px) {
    .event-images.four-images {
        gap: 10px;
    }
    
    .event-images img {
        height: auto;
        min-height: 200px;
    }
}

@media (max-width: 992px) {
    .event-images.three-images,
    .event-images.four-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-images.one-image {
        max-width: 500px;
    }
    
    .event-images.two-images {
        max-width: 600px;
    }
    
    .event-images img {
        height: 180px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .sidebar-menu {
        flex: none;
        position: relative;
        top: 0;
        width: 100%;
    }

    .event-item {
        padding: 20px;
    }

    .event-heading {
        font-size: 1.5rem;
    }

    footer {
        font-size: 16px;
        padding: 40px 0 20px;
    }

    .footer-section h3 {
        font-size: 18px;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
    }

    .contact-item i {
        margin-top: 0;
    }

    .contact-item div {
        text-align: center;
    }

    .contact-item strong,
    .contact-item p {
        text-align: center;
        font-size: 16px;
    }

    .footer-links-grid {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-links-column {
        min-width: 0;
    }

    .footer-link {
        font-size: 16px;
        justify-content: center;
    }

    

.footer-bottom p {
    margin: 0;
    color: var(--text-light);
    font-size: 18px;
    font-family: 'Myriad Pro';
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    footer {
        font-size: 16px;
        padding: 40px 0 20px;
    }

    .footer-section h3 {
        font-size: 18px;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
    }

    .contact-item i {
        margin-top: 0;
    }

    .contact-item div {
        text-align: center;
    }

    .contact-item strong,
    .contact-item p {
        text-align: center;
        font-size: 16px;
    }

    .footer-links-grid {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-links-column {
        min-width: 0;
    }

    .footer-link {
        font-size: 16px;
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    footer {
        font-size: 14px;
        padding: 30px 0 20px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .contact-item strong {
        font-size: 14px;
    }

    .contact-item p {
        font-size: 14px;
    }

    .footer-link {
        font-size: 14px;
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}

.menu-link:focus,
.nav-item a:focus,
.subsection-button:focus,
.dropdown-item:focus { 
    outline: 2px solid var(--main-accent-gold);
    outline-offset: 2px;
}


@media print {
    .horizontal-nav,
    .sidebar-menu,
    footer,
    .mobile-sidebar-toggle { 
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .content-section {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .section-header {
        page-break-after: avoid;
    }

    .subsection-content { 
        display: block !important;
    }
    .subsection-nav {
        display: none;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    overflow: hidden;
    z-index: 1; 
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.menu-link, .nav-item a, .subsection-button { 
    position: relative;
    overflow: hidden; 
}

.content-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (max-width: 768px) {
    .sidebar-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-menu.mobile-active {
        transform: translateX(0);
    }
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.candidates-trained-section {
    margin-top: 30px;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 0 0 280px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px 0;
    height: fit-content;
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.menu-header {
    padding: 0 30px 20px;
    border-bottom: 2px solid var(--main-accent-gold);
    margin-bottom: 20px;
}

.menu-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--main-theme-dark-blue);
    margin: 0;
}

.menu-nav {
    padding: 0 20px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 5px;
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    gap: 12px;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--main-accent-gold);
    border-radius: 2px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-link:hover::before,
.menu-item.active .menu-link::before {
    transform: scaleY(1);
}

.menu-link:hover {
    background: rgba(59, 107, 168, 0.1);
    color: var(--main-theme-blue);
    transform: translateX(5px);
}

.menu-item.active .menu-link {
    background: var(--main-theme-blue);
    color: #ffffff;
    transform: translateX(5px);
}

.menu-item.active .menu-link::before {
    background: var(--main-accent-gold);
}

.menu-number {
    font-weight: 600;
    color: var(--main-accent-gold);
    min-width: 25px;
}

.menu-item.active .menu-number {
    color: var(--main-accent-gold);
}

.menu-text {
    flex: 1;
}

.submenu {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding-left: 0;
}

.menu-item.expanded > .submenu {
    display: block;
    max-height: 500px; /* big enough to contain the menu */
}

.submenu-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 8px;
    color: var(--main-accent-gold);
    font-size: 14px;
    transition: transform 0.3s;
    user-select: none;
}
.submenu-toggle i {
    transition: transform 0.3s;
}
.menu-item.expanded > .menu-link > .submenu-toggle i {
    transform: rotate(180deg);
}
.nav-item.active a .nav-text {
  background: linear-gradient(to right, #ffc107 50%, #ffffff 50%);
  background-size: 200% auto;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: bold;
  animation: gradientSlide 2s ease-in-out infinite alternate;
}

@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.nav-item.active a::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: var(--main-accent-gold);
  margin-top: 6px;
  border-radius: 2px;
  animation: underlineSlide 0.4s ease-in-out;
}

@keyframes underlineSlide {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 1; }
}

.conferences-section {
    margin: 40px auto 60px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.conference-list-alternating {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 1100px;      
    margin: 0 auto;
}
.conference-item {
    display: flex;
    align-items: center;
    gap: 10px;               
    background: #fff;
    border-radius: 22px;      
    padding: 32px;            
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
    min-height: 300px;   
    max-width: 1100px;        
    width: 100%;
    margin: 0 auto;
    transition: all 0.3s;
}
.conference-item-visual {
    flex-shrink: 0;
    width: 420px;             
    height: 280px;            
    max-width: 420px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.11);
    display: flex;
    align-items: stretch;
}
.conference-item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.3s;
}
.conference-item-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;        
}
.conference-item-content h3 {
    font-size: 20px;         
    font-weight: 700;
    margin-bottom: 18px;
    color: #1a202c;
}
.conference-item-content p {
    font-size: 20px;       
    color: #000000;
    margin-bottom: 0;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .conference-list-alternating,
    .conference-item {
        max-width: 98vw;
    }
    .conference-item {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 18px;
        min-height: 120px;
    }
    .conference-item-visual {
        width: 94vw;
        max-width: 100vw;
        height: 200px;
    }
    .conference-item-content {
        min-height: 120px;
        width: 100%;
        text-align: center;
    }
    .conference-item-content h3 {
        font-size: 1.25rem;
        text-align: center;
    }
    .conference-item-content p {
        font-size: 1.05rem;
        text-align: center;
    }
}
@media (max-width: 500px) {
    .conference-item-visual {
        height: 130px;
    }
    .conference-item {
        padding: 10px;
        gap: 10px;
    }
    .conference-item-content h3 {
        font-size: 1.05rem;
    }
    .conference-item-content p {
        font-size: 0.98rem;
    }
}

.events-section {
    padding: 0;
    background: #ffffff;
    margin: 0 0 96px 0; 
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.event-item {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: left;
    font-family: 'Myriad Pro';
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
}

.event-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black-heading);
    margin: 0 0 15px 0;
    text-align: center;
    line-height: 1.2;
}

.event-date {
    display: block;
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.event-images {
  display: grid;
  gap: 10px;
  width: 100%;
  height: 300px; 
  border-radius: 12px;
  overflow: hidden;
}

.event-images.four-images {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.event-images.three-images {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.event-images.three-images a:nth-child(1) {
  grid-row: 1 / 3;
}

.event-images.two-images {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.event-images.one-image {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.event-images a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.event-images img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  transition: transform 0.3s ease;
}

.event-images a:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .event-images {
    height: 200px;
  }
  
  .event-images.four-images,
  .event-images.three-images,
  .event-images.two-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  
  .event-images.three-images a:nth-child(1) {
    grid-row: 1; 
  }
}

@media (max-width: 480px) {
  .event-images {
    height: 150px;
  }
  
  .event-images.four-images,
  .event-images.three-images,
  .event-images.two-images {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto-fit, 1fr);
    height: auto;
    min-height: 200px;
  }
}

.lightbox-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    z-index: 2000; 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-header {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.lightbox-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color, #1a202c);
    margin: 0;
}

.lightbox-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: calc(90vh - 100px); 
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--text-dark, #334155);
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 2001;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    background: transparent;
    color: #ccc;
}

.lightbox-close:hover {
    background: rgba(255, 0, 0, 0.7);
    color: white;
    transform: scale(1.1);
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}
}
.outreach-details-link {
    text-align: right;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    font-family: 'myraid pro';
}

.outreach-details-link p {
    margin: 0;
    font-size: 20px;
    color: #000000;
    font-weight: 500;
}

.details-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease-in-out, border-bottom 0.2s ease-in-out;
    border-bottom: 2px solid transparent;
}

.details-link:hover {
    color: #1d4ed8;
    border-bottom: 2px solid #2563eb;
}
.footer-download-btn {
    display: inline-block;
    background: var(--main-accent-gold, #FFC107);
    color: var(--main-theme-dark-blue, #1A2E44);
    font-family: 'Myriad Pro';
    font-weight: 700;
    font-size: 18px;
    padding: 12px 28px;
    border-radius: 8px;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.13);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.footer-download-btn i {
    margin-right: 8px;
    font-size: 1.2em;
}
.footer-download-btn:hover {
    background: #ffcd38;
    color: #000;
    transform: translateY(-2px);
}

.training-statistics-section {
    padding: 60px 0;
    background: #f8fafc;
    margin-top: 40px;
}

.training-intro {
    text-align: justify;
    margin-bottom: 30px;
    width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.training-intro p {
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 20px;
    font-weight: 400;
}

.training-intro h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.training-tables {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.training-category {
    background: white;
    border: 1px solid #ddd;
    overflow: hidden;
}

.category-header {
    padding: 12px 20px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    text-align: left;
}

.postgraduate-header,
.fellowship-header,
.international-header,
.shortterm-international-header,
.clinical-header,
.paramedical-header,
.management-header {
    background: #4CAF50;
    color: white;
}

.training-table {
    padding: 0;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    background: white;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:nth-child(even) {
    background: #f9f9f9;
}

.course-name {
    flex: 1;
    font-size: 17px;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
    padding-right: 20px;
}

.course-count {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    min-width: 30px;
    text-align: right;
}

@media (max-width: 768px) {
    .training-statistics-section {
        padding: 40px 0;
    }
    
    .training-intro,
    .training-tables {
        padding: 0 15px;
    }
    
    .category-header {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .table-row {
        padding: 8px 15px;
    }
    
    .course-name {
        font-size: 13px;
        padding-right: 10px;
    }
    
    .course-count {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .table-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .course-count {
        align-self: flex-end;
    }
}
.table-row.total-candidates-row .course-name,
.table-row.total-candidates-row .course-count {
    color: #326fcae8;
    font-weight: 700;
}