/* Refined Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}
/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

/* Enhanced Background Effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%),
        url('../assets/pattern.svg');
    opacity: 0.15;
    animation: backgroundShift 30s linear infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--mbdi-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideInDown 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--mbdi-white);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: slideInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeIn 1s ease 0.4s backwards;
}

/* Enhanced Button Styles */
.cta-button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    text-decoration: none;
}

.cta-button.primary {
    background: var(--gradient-secondary);
    color: var(--mbdi-white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--mbdi-white);
}

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-button.primary:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Animations */
@keyframes backgroundShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding: 3rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .cta-button {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 2rem 1rem;
    }
}

/* Refined Section Styles */
.section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--mbdi-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    
    .section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--mbdi-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}

/* Enhanced Section Styles */
.section-padding {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
}

.section-title p { 
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Home President Section - Renamed to avoid conflicts */
.home-president-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 40px;
    overflow: hidden;
}

.home-president-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, rgba(0, 102, 204, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.home-president-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.home-president-image-col {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-president-image {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 8px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-president-image::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 102, 204, 0.4);
    animation: rotate 30s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.home-president-image:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.home-president-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.home-president-image:hover img {
    transform: scale(1.1);
}

/* Update social links to ensure Twitter icon displays correctly */
.home-president-image .social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-bottom-left-radius: 140px;
    border-bottom-right-radius: 140px;
}

.home-president-image .social-links .social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    transform: translateY(0);
}

.home-president-image .social-links .social-link:hover {
    background: var(--mbdi-blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* Ensure all social media icons are visible, including Twitter */
.home-president-image .social-links .social-link i.fa-facebook-f,
.home-president-image .social-links .social-link i.fa-x-twitter,
.home-president-image .social-links .social-link i.fa-twitter,
.home-president-image .social-links .social-link i.fa-instagram,
.home-president-image .social-links .social-link i.fa-linkedin-in {
    font-size: 1.2rem;
    display: inline-block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .home-president-image .social-links {
        opacity: 1;
        height: 35%;
    }
    
    .home-president-image:hover {
        transform: scale(1.05);
    }
    
    .home-president-image .social-links .social-link {
        width: 34px;
        height: 34px;
    }
}

/* Contact info styling - Enhanced */
.contact-info {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--mbdi-blue);
}

.info-item:hover {
    background: rgba(0, 102, 204, 0.05);
    transform: translateX(5px);
    color: var(--mbdi-blue);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
}

.info-item i {
    font-size: 1.2rem;
    color: var(--mbdi-blue);
    width: 24px;
    text-align: center;
}

.info-item span {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Enhanced content column */
.home-president-content-col {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s ease;
    border-left: 5px solid var(--mbdi-blue);
    min-height: 350px;
    z-index: 2;
}

.home-president-content-col:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.home-president-content-col h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.home-president-role {
    font-size: 1.3rem;
    color: var(--mbdi-blue);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.home-president-role::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.home-president-message {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 15px;
}

.home-president-message p {
    margin-bottom: 18px;
}

.home-president-message p:first-of-type {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--mbdi-blue);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .home-president-image .social-links {
        opacity: 1;
        transform: translateY(0);
        height: 35%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    }
    
    .home-president-image .social-links .social-link {
        width: 36px;
        height: 36px;
        transform: translateY(0);
    }
    
    .home-president-section {
        padding: 60px 0;
    }
    
    .home-president-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .home-president-image-col {
        margin-bottom: 30px;
    }
    
    .home-president-content-col {
        padding: 25px;
    }
    
    .home-president-content-col h3 {
        font-size: 1.6rem;
    }
}

/* Activities Section */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Activity Card */
.activity-card {
    background: var(--mbdi-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Activity Image */
.activity-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    transition: transform 0.3s ease; /* Smooth scaling effect */
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-image {
    transform: scale(1.05); /* Scale effect on card hover */
}

.activity-card:hover .activity-image img {
    transform: scale(1.1); /* Scale effect on image hover */
}

.activity-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--mbdi-blue);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Added shadow for better visibility */
}

.activity-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.activity-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.activity-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.activity-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.activity-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--mbdi-blue);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.activity-button:hover {
    background: #004d99;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 153, 0.2);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.news-card {
    background: var(--mbdi-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.home-news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.home-news-image  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .home-news-image  img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--mbdi-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mbdi-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #004d99;
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .activities-grid,
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .activities-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .activities-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .activities-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-image,
    .home-news-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Committee Section */
.committee-section {
    background: linear-gradient(to bottom, #f8f9fa, #f0f2f5);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.committee-container {
    position: relative;
    padding: 0 50px;
    margin: 40px auto;
    max-width: 1400px;
}

/* Enhanced committee card */
.committee-card {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.committee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.committee-card:hover::before {
    transform: scaleX(1);
}

/* Enhanced social links */
.social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--mbdi-blue);
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* Committee image container */
.committee-image {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    margin-bottom: 15px;
    width: 300px; /* Increased base size */
    height: 300px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.committee-card:hover .committee-image {
    transform: scale(1.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.committee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.committee-card:hover .committee-image img {
    transform: scale(1.1);
}

/* Update social links for circular images */
.committee-image .social-links {
    border-radius: 50%;
}

.committee-image:hover .social-links,
.committee-card:hover .social-links {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile adjustments for social links */
@media (max-width: 768px) {
    .committee-image .social-links {
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
        padding: 12px;
    }
    
    .committee-card:hover .committee-image {
        transform: scale(1.05);
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Enhanced committee content */
.committee-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.committee-content h3 {
    font-size: 1.3rem;
    margin: 0 0 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.committee-content .committee-role {
    font-size: 1rem;
    color: var(--mbdi-blue);
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    padding-bottom: 15px;
}

.committee-content .committee-role::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Enhanced view speech button */
.view-speech-btn {
    margin-top: auto;
    padding: 10px 20px;
    background: var(--mbdi-blue);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-speech-btn::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-speech-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.view-speech-btn:hover::after {
    transform: translateX(3px);
}

/* Improved grid wrapper */
.committee-grid-wrapper {
    position: relative;
    min-height: 500px; /* Add minimum height to ensure consistent positioning */
}

/* Desktop View (default) */
.committee-grid {
    position: absolute;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.committee-grid.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    display: grid;
}

.committee-grid:not(.active) {
    display: none;
}

/* Card animations */
.committee-grid .committee-card {
    opacity: 0;
    transform: translateY(20px);
}

.committee-grid.active .committee-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.committee-grid.active .committee-card:nth-child(1) {
    transition-delay: 0.1s;
}

.committee-grid.active .committee-card:nth-child(2) {
    transition-delay: 0.2s;
}

.committee-grid.active .committee-card:nth-child(3) {
    transition-delay: 0.3s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure cards are equal height */
.committee-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .committee-grid-wrapper {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        min-height: 450px; /* Adjust minimum height for mobile */
    }
    
    .committee-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
}

/* Enhanced navigation buttons */
.committee-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 5;
    width: 100%;
}

.nav-btn {
    position: absolute;
    background: white;
    color: var(--mbdi-blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    top: 50%;
    transform: translateY(-50%);
}

.nav-btn:hover {
    background: var(--mbdi-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* Enhanced navigation dots */
.committee-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--mbdi-blue);
    transform: scale(1.2);
}

.dot.active::after {
    border-color: var(--mbdi-blue);
    opacity: 0.5;
}

.dot:hover {
    background: #bbb;
    transform: scale(1.1);
}

/* Enhanced modal */
.speech-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.speech-modal.active {
    display: flex;
    animation: modalFadeIn 0.4s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--mbdi-blue);
    color: white;
    transform: rotate(90deg);
}

.modal-title {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.modal-body {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .committee-container {
        padding: 0 40px;
    }
    
    .committee-image {
        width: 200px;
        height: 200px;
    }
    
    .committee-grid {
        gap: 25px;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
}

@media (max-width: 992px) {
    .committee-container {
        padding: 0 35px;
    }
    
    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .committee-image {
        width: 180px;
        height: 180px;
    }
    
    .prev-btn {
        left: -18px;
    }
    
    .next-btn {
        right: -18px;
    }
}

@media (max-width: 768px) {
    .committee-section {
        padding: 60px 0;
    }
    
    .committee-container {
        padding: 0 30px;
        margin: 30px auto;
    }
    
    .committee-grid-wrapper {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        min-height: 450px; /* Adjust minimum height for mobile */
    }
    
    .committee-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .committee-card {
        width: 100%;
        margin: 0 auto;
        max-width: 350px;
    }
    
    .committee-image {
        width: 200px;
        height: 200px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: -15px;
    }
    
    .next-btn {
        right: -15px;
    }
    
    .modal-content {
        padding: 30px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .committee-grid-wrapper {
        min-height: 420px; /* Adjust minimum height for smaller screens */
    }
    
    .committee-card {
        padding: 15px;
    }
    
    .committee-image {
        width: 180px;
        height: 180px;
    }
    
    .committee-content h3 {
        font-size: 1.2rem;
    }
    
    .committee-content .committee-role {
        font-size: 0.9rem;
    }
    
    .view-speech-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .prev-btn {
        left: -12px;
    }
    
    .next-btn {
        right: -12px;
    }
}

@media (max-width: 360px) {
    .committee-grid-wrapper {
        min-height: 400px; /* Adjust minimum height for very small screens */
    }
    
    .committee-image {
        width: 160px;
        height: 160px;
    }
    
    .committee-container {
        padding: 0 25px;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .prev-btn {
        left: -10px;
    }
    
    .next-btn {
        right: -10px;
    }
}