/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Playfair Display', serif;
}
h2, .display-5 {
	font-size: 2rem;
}

/* Navbar & Logo */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    background-color: #1a2a4e;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
}

.logo-m {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.logo-text {
    line-height: 1.1;
}f

.nav-link {
    color: #333 !important;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.92rem;
    transition: color 0.3s ease;
    letter-spacing: -0.04em;
}

.nav-link:hover {
    color: #1a2a4e !important;
}

/* Mega Menu */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    width: 800px;
    left: 0;
    transform: translateY(20px);
    top: 100%;
    margin-top: 10px;
    border-radius: 8px;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    z-index: 1000;
    padding: 20px !important;
}

.mega-dropdown:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #8d7a5d !important;
    margin-bottom: 1.2rem;
	text-transform:capitalize;
}

.mega-menu-items li {
    margin-bottom: 0.6rem;
}

.mega-menu-items li a {
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.mega-menu-items li a {
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.mega-menu-items li a:hover {
    color: #1a2a4e;
    transform: translateX(8px);
}

.mega-menu-items li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.mega-menu-items li a:hover::before {
    opacity: 1;
    left: -20px;
}

/* Hero Slideshow */
.hero-img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 0;
    padding-bottom: 10%;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-caption p {
    font-size: 1.2rem;
    font-weight: 300;
}

.btn-outline-light {
    border-width: 2px;
    text-transform: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #1a2a4e;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item.active .carousel-caption h1 {
    animation: fadeInUp 0.8s ease forwards;
}

.carousel-item.active .carousel-caption p {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.carousel-item.active .carousel-caption div {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .mega-menu {
        width: 100% !important;
        position: relative !important;
        transform: none !important;
        left: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        pointer-events: auto;
        box-shadow: none !important;
    }
    
    .mega-dropdown.show .mega-menu {
        display: block;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
}

/* Shaping the Future Section (Overlapping Hero) */
.shaping-future-section {
    position: relative;
    margin-top: -120px;
    padding-bottom: 60px;
    z-index: 10;
}

.info-card {
    background: #fff;
    padding: 60px 80px;
    position: relative;
    z-index: 10;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.sub-heading {
    font-family: 'Playfair Display', serif;
    color: #8d7a5d;
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.main-heading {
    font-family: 'Playfair Display', serif;
    color: #1a2a4e;
    font-size: 2rem;
    font-weight: 700;
}

.section-title {
    font-size: 2.2rem !important;
}

.content-text {
    max-width: 900px;
    margin: 0 auto;
}

.content-text p {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .info-card {
        padding: 40px 20px;
    }
    
    .main-heading {
        font-size: 2.2rem;
    }
    
    .sub-heading {
        font-size: 1.4rem;
    }
}

/* Events Highlights Section */
.btn-dark-blue {
    background-color: #1a2a4e;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-dark-blue:hover {
    background-color: #0d162b;
    color: #fff;
    transform: translateY(-2px);
}

.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 450px;
}

.event-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    transition: background 0.3s ease;
}

.event-content {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}


.event-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

.read-more-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-link .arrow {
    transition: transform 0.3s ease;
}

/* Hover Effects */
.event-card:hover .event-img {
    transform: scale(1.1);
}

.event-card:hover .event-overlay {
    background: linear-gradient(to top, rgba(26, 42, 78, 0.95) 0%, rgba(26, 42, 78, 0.6) 100%);
}

.event-card:hover .event-content {
    transform: translateY(0);
}

.event-card:hover .event-description {
    opacity: 1;
    max-height: 100px;
}

.event-card:hover .read-more-link .arrow {
    transform: translateX(5px);
}

@media (max-width: 767.98px) {
    .event-card {
        height: 350px;
    }
    
    .event-title {
        font-size: 1.4rem;
    }
    
    .event-overlay {
        padding: 20px;
    }
    
    .event-description {
        display: none;
    }
}

/* What Guides Us Section */
.value-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2a4e;
    margin-bottom: 15px;
}

.value-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Get Involved Section */
.involved-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 350px;
}

.involved-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.involved-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.involved-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: all 0.3s ease;
}

.involved-content {
    color: #fff;
    width: 100%;
}

.involved-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
	text-transform:capitalize;
}

.involved-links {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.involved-links li {
    margin-bottom: 5px;
}

.involved-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.involved-links li a:hover {
    opacity: 0.8;
}

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

.involved-card:hover .involved-overlay {
    background: rgba(26, 42, 78, 0.9);
}

.involved-card:hover .involved-links {
    opacity: 1;
    max-height: 200px;
    margin-top: 15px;
}

/* Updates Carousel (Owl-Carousel) */
.updates-carousel {
    padding: 20px 0 50px;
}

.update-card {
    border: none;
    transition: transform 0.3s;
    margin: 10px;
}

.update-card:hover {
    transform: translateY(-5px);
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.owl-carousel .owl-dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dot.active {
    background: #1a2a4e;
    width: 30px;
    border-radius: 5px;
}

.owl-carousel .owl-nav {
    display: none !important;
}

/* Journals Slider */
.journals-slider {
    padding: 40px 0;
}

.journal-cover img {
    border-radius: 4px;
    max-height: 400px;
    width: auto;
    transition: transform 0.3s;
}

.journal-card:hover .journal-cover img {
    transform: scale(1.03);
}

.journal-title {
    font-family: 'Playfair Display', serif;
    color: #1a2a4e;
    font-size: 1rem !important;
    margin-top: 15px;
}

/* Membership Box */
.info-box {
    border-radius: 8px;
    height: 350px;
    transition: transform 0.3s;
}

.info-box:hover {
    transform: scale(1.02);
}

.dark-box {
    background-color: #1a2a4e;
}

.membership-box {
    background-color: #8d7a5d;
}

.btn-gold {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-gold:hover {
    background-color: #fff;
    color: #8d7a5d;
}

/* Footer */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a::before {
    content: '→';
    opacity: 0;
    transition: all 0.3s;
    margin-right: -8px;
}

.footer-links li a:hover {
    color: #1a2a4e;
}

.footer-links li a:hover::before {
    opacity: 1;
    margin-right: 0;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #8d7a5d !important;
}

.italic {
    font-style: italic;
}

/* Hide Swiper Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}
.btn-group-lg>.btn, .btn-lg{
	font-size:1rem;
}


/* Consolidated Styles from HTML Pages */

/* Styles from about.html */
.page-header {
            background: linear-gradient(rgba(26, 42, 78, 0.85), rgba(26, 42, 78, 0.85)), url('https://mssrn.org/public/frontend/assets/images/hero1.jpg');
            background-size: cover;
            background-position: center;
            padding: 100px 0;
            color: #fff;
            text-align: center;
        }
        .page-header h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }
        .breadcrumb {
            justify-content: center;
            background: transparent;
        }
        .breadcrumb-item + .breadcrumb-item::before {
            color: rgba(255,255,255,0.7);
        }
        .breadcrumb-item a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: #fff;
        }
        .content-section {
            padding: 80px 0;
        }
    
        .sidebar-title {
            font-family: 'Playfair Display', serif;
            color: #1a2a4e;
            font-size: 1.5rem;
            margin-bottom: 20px;
            border-bottom: 2px solid #8d7a5d;
            padding-bottom: 10px;
        }
        .sidebar-links {
            list-style: none;
            padding: 0;
        }
        .sidebar-links li {
            margin-bottom: 15px;
        }
        .sidebar-links li a {
            color: #444;
            text-decoration: none;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sidebar-links li a:hover {
            color: #1a2a4e;
        }
        .section-subtitle {
            color: #8d7a5d;
            font-style: italic;
            margin-bottom: 10px;
            display: block;
        }
        .vision-mission-card {
            border-left: 4px solid #8d7a5d;
            padding-left: 30px;
            margin-bottom: 40px;
        }
        .team-member {
            text-align: center;
            margin-bottom: 30px;
        }
        .team-photo {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: #eee;
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .team-photo i {
            font-size: 4rem;
            color: #ccc;
        }
        .team-name {
            font-family: 'Playfair Display', serif;
            color: #1a2a4e;
            font-size: 1.2rem;
            margin-bottom: 5px;
        }
        .team-role {
            color: #8d7a5d;
            font-size: 0.9rem;
            font-weight: 600;
        }

/* Styles from advocacy.html */
.page-header {
            background: linear-gradient(rgba(26, 42, 78, 0.9), rgba(26, 42, 78, 0.9)), url('https://mssrn.org/public/frontend/assets/images/hero1.jpg');
            background-size: cover;
            background-position: center;
            padding: 100px 0;
            color: #fff;
            text-align: center;
        }
        .pagge-header h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }
        .breadcrumb {
            justify-content: center;
            background: transparent;
        }
        .breadcrumb-item + .breadcrumb-item::before {
            color: rgba(255,255,255,0.7);
        }
        .breadcrumb-item a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: #fff;
        }
        .content-section {
            padding: 80px 0;
        }
        .sidebar-card {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 8px;
            margin-bottom: 30px;
            position:relative;
            z-index:99 !important;
        }
        .sidebar-title {
            font-family: 'Playfair Display', serif;
            color: #1a2a4e;
            font-size: 1.5rem;
            margin-bottom: 20px;
            border-bottom: 2px solid #8d7a5d;
            padding-bottom: 10px;
        }
        .sidebar-links {
            list-style: none;
            padding: 0;
        }
        .sidebar-links li {
            margin-bottom: 15px;
        }
        .sidebar-links li a {
            color: #444;
            text-decoration: none;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sidebar-links li a:hover {
            color: #1a2a4e;
        }
        .section-subtitle {
            color: #8d7a5d;
            font-style: italic;
            margin-bottom: 10px;
            display: block;
        }

/* Styles from conferences.html */
.page-header {
            background: linear-gradient(rgba(26, 42, 78, 0.85), rgba(26, 42, 78, 0.85)), url('assets/images/event1.jpg');
            background-size: cover;
            background-position: center;
            padding: 100px 0;
            color: #fff;
            text-align: center;
        }
        .page-header h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }
        .breadcrumb {
            justify-content: center;
            background: transparent;
        }
        .breadcrumb-item + .breadcrumb-item::before {
            color: rgba(255,255,255,0.7);
        }
        .breadcrumb-item a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: #fff;
        }
        .content-section {
            padding: 80px 0;
        }
        .conference-card {
            border: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 40px;
            transition: transform 0.3s;
        }
        .conference-card:hover {
            transform: translateY(-10px);
        }
        .conf-img {
            height: 250px;
            object-fit: cover;
            width: 100%;
        }
        .conf-body {
            padding: 30px;
        }
        .conf-date {
            color: #8d7a5d;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 10px;
            display: block;
        }
        .conf-title {
            font-family: 'Playfair Display', serif;
            color: #1a2a4e;
            font-size: 1.5rem;
            margin-bottom: 15px;
        }
        .conf-meta {
            font-size: 0.85rem;
            color: #666;
            margin-bottom: 20px;
        }
        .conf-meta i {
            margin-right: 5px;
            color: #1a2a4e;
        }

/* Styles from contact.html */
.page-header {
            background: linear-gradient(rgba(26, 42, 78, 0.85), rgba(26, 42, 78, 0.85)), url('assets/images/hero3.jpg');
            background-size: cover;
            background-position: center;
            padding: 100px 0;
            color: #fff;
            text-align: center;
        }
        .page-header h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }
        .breadcrumb {
            justify-content: center;
            background: transparent;
        }
        .breadcrumb-item + .breadcrumb-item::before {
            color: rgba(255,255,255,0.7);
        }
        .breadcrumb-item a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: #fff;
        }
        .contact-section {
            padding: 80px 0;
        }
        .contact-info-card {
            background: #fff;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            height: 100%;
        }
        .contact-icon {
            width: 50px;
            height: 50px;
            background: #f8f9fa;
            color: #1a2a4e;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin-bottom: 20px;
            font-size: 1.2rem;
        }
        .contact-form-wrapper {
            background: #f8f9fa;
            padding: 40px;
            border-radius: 12px;
        }
        .form-control {
            padding: 12px 15px;
            border-radius: 8px;
            border: 1px solid #ddd;
        }
        .form-control:focus {
            border-color: #1a2a4e;
            box-shadow: 0 0 0 0.2rem rgba(26, 42, 78, 0.1);
        }

/* Styles from journals.html */
.page-header {
            background: linear-gradient(rgba(26, 42, 78, 0.85), rgba(26, 42, 78, 0.85)), url('https://mssrn.org/public/frontend/assets/images/hero2.jpg');
            background-size: cover;
            background-position: center;
            padding: 100px 0;
            color: #fff;
            text-align: center;
        }
        .page-header h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }
        .breadcrumb {
            justify-content: center;
            background: transparent;
        }
        .breadcrumb-item + .breadcrumb-item::before {
            color: rgba(255,255,255,0.7);
        }
        .breadcrumb-item a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: #fff;
        }
        .content-section {
            padding: 80px 0;
        }
        .journal-list-card {
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            margin-bottom: 40px;
            border: 1px solid #eee;
            transition: transform 0.3s;
        }
        .journal-list-card:hover {
            transform: translateY(-5px);
        }
        .journal-img-side {
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }
        .journal-img-side img {
            max-width: 100%;
            height: auto;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }
        .journal-info-side {
            padding: 40px;
        }
        .journal-tag {
            display: inline-block;
            background: #8d7a5d;
            color: #fff;
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 15px;
        }
        .journal-title {
            font-family: 'Playfair Display', serif;
            color: #1a2a4e;
            font-size: 1.8rem;
            margin-bottom: 20px;
        }
        .journal-meta {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 20px;
            display: flex;
            gap: 20px;
        }
        .journal-meta span i {
            color: #8d7a5d;
            margin-right: 5px;
        }

/* Styles from projects.html */
.page-header {
            background: linear-gradient(rgba(26, 42, 78, 0.85), rgba(26, 42, 78, 0.85)), url('https://mssrn.org/public/frontend/assets/images/get-involved/research.jpg');
            background-size: cover;
            background-position: center;
            padding: 100px 0;
            color: #fff;
            text-align: center;
        }
        .page-header h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }
        .breadcrumb {
            justify-content: center;
            background: transparent;
        }
        .breadcrumb-item + .breadcrumb-item::before {
            color: rgba(255,255,255,0.7);
        }
        .breadcrumb-item a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: #fff;
        }
        .content-section {
            padding: 80px 0;
        }
        .project-card {
            background: #fff;
            border-radius: 12px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            margin-bottom: 30px;
            border-left: 5px solid #1a2a4e;
            transition: all 0.3s;
        }
        .project-card:hover {
            transform: translateX(10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }
        .project-category {
            color: #8d7a5d;
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            margin-bottom: 10px;
            display: block;
        }
        .project-title {
            font-family: 'Playfair Display', serif;
            color: #1a2a4e;
            font-size: 1.6rem;
            margin-bottom: 15px;
        }
        .project-status {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 20px;
        }
        .status-ongoing { background: #e3f2fd; color: #1976d2; }
        .status-completed { background: #e8f5e9; color: #2e7d32; }
/* Smooth Dropdown Styles */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* Ensure mega menu still works with its own logic or the new one */
.mega-dropdown:hover .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Membership Form Styles */
.membership-form-wrapper {
    border: none;
    background: #fff;
}

.membership-form-wrapper .bg-primary {
    background-color: #1a2a4e !important;
}

.membership-form-wrapper .btn-primary {
    background-color: #1a2a4e;
    border-color: #1a2a4e;
}

.membership-form-wrapper .btn-primary:hover {
    background-color: #0d162b;
    border-color: #0d162b;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    background-color: #e9ecef !important;
}
.footer-section .text-muted{
        color: rgba(255, 255, 255, 0.7) !important;
}
.btn-primary{
    background-color:#8d7a5d !important;
    border-color:#8d7a5d !important;
}
/* Team Member Styles */
/* Single Profile Page Styles */
.profile-detail-section {
    padding: 80px 0;
    background-color: #fff;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
}

.profile-image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid #1a2a4e;
}

.profile-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.profile-contact-item i {
    width: 35px;
    height: 35px;
    background: #1a2a4e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 0.9rem;
}

.profile-contact-item span {
    font-size: 0.95rem;
    color: #444;
}

.profile-main-content h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a2a4e;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.profile-designation {
    font-size: 1.2rem;
    color: #8d7a5d;
    font-weight: 600;
    margin-bottom: 30px;
    display: block;
}

.profile-bio-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.profile-sub-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a2a4e;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.experience-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #8d7a5d;
}

.experience-year {
    font-weight: 700;
    color: #8d7a5d;
    display: block;
    margin-bottom: 5px;
}

.experience-title {
    font-weight: 700;
    color: #1a2a4e;
    font-size: 1.1rem;
}

.experience-org {
    color: #777;
    font-size: 0.95rem;
}

.profile-social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.profile-social-links a {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a2a4e;
    transition: all 0.3s ease;
}

.profile-social-links a:hover {
    background: #1a2a4e;
    color: #fff;
    border-color: #1a2a4e;
    transform: translateY(-3px);
}
/* Merged Membership & Community Styles */
.benefit-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #1a2a4e;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    color: #1a2a4e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.registration-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.payment-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px dashed #ddd;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a2a4e;
    margin-bottom: 40px;
}
/* Revised Membership & Dashboard Styles */
.membership-type-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.membership-type-card:hover {
    transform: translateY(-10px);
    border-color: #1a2a4e;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.type-icon {
    font-size: 2.5rem;
    color: #1a2a4e;
    margin-bottom: 20px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.benefit-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.benefit-list li i {
    color: #28a745;
    margin-right: 12px;
    margin-top: 5px;
}

/* Dashboard Section */
.community-dashboard {
    background: #f8f9fa;
    padding: 80px 0;
    border-radius: 50px 50px 0 0;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a4e;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: #8d7a5d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.dashboard-widget {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.member-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* Event Details Page Styles */
.event-details-section {
    padding: 60px 0;
    background: #fff;
}

.event-featured-img {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.event-meta-box {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.event-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.event-info-item i {
    width: 45px;
    height: 45px;
    background: #1a2a4e;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.event-info-text h6 {
    margin-bottom: 2px;
    font-weight: 700;
    color: #1a2a4e;
    font-size: 0.9rem;
}

/* Countdown Timer */
.countdown-container {
    background: #1a2a4e;
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.countdown-box {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.countdown-item {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 10px;
    min-width: 60px;
}

.countdown-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Highlights & Gallery */
.highlight-card {
    border-left: 4px solid #8d7a5d;
    background: #fcfaf7;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 150px;
}

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


/* Speakers Carousel Styles */
.speakers-section {
    padding: 60px 0;
    background: #f8f9fa;
    border-radius: 20px;
    margin: 40px 0;
}

.speaker-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    margin: 10px;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #1a2a4e;
}

.speaker-img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.speaker-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-name {
    font-weight: 700;
    color: #1a2a4e;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.speaker-designation {
    font-size: 0.85rem;
    color: #8d7a5d;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.carousel-control-prev, .carousel-control-next {
    width: 40px;
    height: 40px;
    background: #1a2a4e;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev { left: -20px; }
.carousel-control-next { right: -20px; }

@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu,
    .nav-item.mega-dropdown:hover > .mega-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Bridge the gap to maintain hover */
    .dropdown-menu::before,
    .mega-menu::before {
        content: "";
        position: absolute;
        top: -25px;
        left: 0;
        width: 100%;
        height: 25px;
        background: transparent;
    }

    /* Mega Menu Desktop Alignment */
    .mega-dropdown {
        position: static !important;
    }
    .mega-menu {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        max-width: 1140px;
        top: 100% !important;
    }
}

/* 2. General Dropdown & Mega Menu Styling */
.dropdown-menu, 
.mega-menu {
    margin-top: 10px !important; /* Space at top for both */
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    padding: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 3. Typography & Spacing */
.nav-link {
    font-size: 0.95rem !important;
    padding: 0.5rem 0.9rem !important;
}

.dropdown-item, 
.mega-menu-items li a {
    font-size: 0.9rem !important;
    padding: 6px 12px !important; /* Reduced padding for tighter line height */
    color: #444 !important;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4 !important; /* Reduced line height */
}

/* 4. Hover Arrow Effect (Desktop Only for better UX) */
@media (min-width: 992px) {
    .dropdown-item, 
    .mega-menu-items li a {
        position: relative !important;
        transition: all 0.3s ease !important;
        display: inline-block !important;
    }

    .dropdown-item:hover, 
    .mega-menu-items li a:hover {
        color: #1a2a4e !important;
        background-color: transparent !important;
        transform: translateX(12px) !important;
    }

    .dropdown-item::before, 
    .mega-menu-items li a::before {
        content: '→' !important;
        position: absolute !important;
        left: -15px !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
        color: #1a2a4e !important;
    }

    .dropdown-item:hover::before, 
    .mega-menu-items li a:hover::before {
        opacity: 1 !important;
        left: -20px !important;
    }
}

/* 5. Submenu (Nested Dropdown) Fix */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0 !important;
    margin-left: 5px !important;
}

/* 6. MOBILE SPECIFIC FIXES */
/* --- Improved Menu: Precision Alignment & Tight Spacing --- */

/* 1. Desktop Stability & Hover Bridge */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu,
    .nav-item.mega-dropdown:hover > .mega-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Bridge the gap to maintain hover */
    .dropdown-menu::before,
    .mega-menu::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
    }

    /* Mega Menu Desktop Alignment: Start from 'Get Involved' */
    .mega-dropdown {
        position: relative !important; /* Changed from static to allow relative positioning */
    }
    
    .mega-menu {
        width: 850px !important; /* Fixed width for precision */
        left: 0 !important; /* Aligns with the left edge of 'Get Involved' */
        right: auto !important;
        margin-top: 5px !important; /* Managed top space */
        padding: 25px !important;
    }
}

/* 2. General Dropdown & Mega Menu Styling */
.dropdown-menu, 
.mega-menu {
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}


.mega-menu-title {
    font-size: 0.8rem !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item, 
.mega-menu-items li a {
    font-size: 0.88rem !important;
    padding: 3px 0 !important; /* Minimal vertical padding */
    margin-bottom: 4px !important; /* Controlled gap between items */
    color: #444 !important;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.2 !important; /* Significantly reduced line height */
    display: block;
}

.mega-menu-items li {
    margin-bottom: 2px !important; /* Tighten list items */
}

/* 4. Hover Arrow Effect (Desktop Only) */
@media (min-width: 992px) {
    .dropdown-item, 
    .mega-menu-items li a {
        position: relative !important;
        transition: all 0.3s ease !important;
        display: inline-block !important;
    }

    .dropdown-item:hover, 
    .mega-menu-items li a:hover {
        color: #1a2a4e !important;
        background-color: transparent !important;
        transform: translateX(15px) !important;
    }

    .dropdown-item::before, 
    .mega-menu-items li a::before {
        content: '→' !important;
        position: absolute !important;
        left: -15px !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
        color: #1a2a4e !important;
    }

    .dropdown-item:hover::before, 
    .mega-menu-items li a:hover::before {
        opacity: 1 !important;
        left: -20px !important;
    }
}

/* 5. Submenu (Nested Dropdown) Fix */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0 !important;
    margin-left: 5px !important;
}

/* 6. MOBILE SPECIFIC FIXES */
@media (max-width: 991.98px) {
    .mega-menu {
        width: 95% !important;
        margin: 10px auto !important;
        left: 2.5% !important;
        position: relative !important;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        width: 100% !important;
        padding-left: 20px !important;
        background: #f9f9f9 !important;
        box-shadow: none !important;
        border: none !important;
    }
}
.sticky-top{
    z-index:999 !important;
}
