/* ===== CUSTOM CSS FOR BIHAR ASSOCIATION, DELHI ===== */

/* CSS Variables for Bihar Association Colors */
:root {
    --primary-orange: #ea580c;    /* Deep orange - Bihar's warmth */
    --secondary-orange: #fb923c;  /* Lighter orange */
    --accent-yellow: #f59e0b;     /* Traditional yellow */
    --light-yellow: #fbbf24;      /* Light yellow */
    --cream: #fef3c7;             /* Cream */
    --dark-red: #dc2626;          /* Deep red - cultural significance */
    --light-red: #f87171;         /* Light red */
    --green: #16a34a;             /* Green - prosperity */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #374151;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --navbar-height: 80px;        /* Navbar height for calculations */
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 80px; /* Ensure body content starts below navbar */
    /* Safari-specific fixes */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--light-yellow));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.text-gold {
    color: var(--accent-yellow) !important;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(234, 88, 12, 0.1);
    z-index: 1030; /* Ensure navbar is above all content */
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px; /* Fixed height for consistent calculations */
    /* Safari-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.brand-text {
    margin-left: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--light-gold) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--light-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0; /* Remove padding so text starts at the beginning */
    margin-top: 0; /* Ensure no additional margin */
    /* Safari-specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: blur(2px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding-top: 0; /* Remove padding to eliminate gap */
    margin-top: 0; /* Ensure no margin */
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-top: 0; /* Remove top margin to eliminate gap */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-yellow), var(--light-yellow));
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-orange);
    transform: translateY(-3px);
}

/* Hero Symbols */
.hero-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    position: relative;
}

.hero-logo {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-logo img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.hero-symbols {
    position: relative;
    height: 300px;
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.symbol {
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--light-yellow);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.symbol.lotus {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.symbol.pen {
    top: 45%;
    right: 10%;
    animation-delay: 2s;
}

.symbol.wheel {
    bottom: 15%;
    left: 25%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* About Section */
.about-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.about-content {
    padding-right: 2rem;
}

.about-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.about-large-image {
    text-align: center;
    padding: 1rem;
}

.about-large-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.about-large-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.about-content-wrapper {
    overflow: hidden;
}

/* Mobile responsive adjustments for text wrapping */
@media (max-width: 768px) {
    .about-large-image.float-end {
        float: none !important;
        margin: 0 0 2rem 0 !important;
        max-width: 100% !important;
    }
    
    .about-content-wrapper {
        text-align: center;
    }
}

.about-circular-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--light-gold);
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

/* Blog Section */
.blog-section {
    background: var(--white);
    padding: 5rem 0;
}

/* Press and Book Cards - Match Event Cards */
.press-card,
.book-card {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.press-card:hover,
.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.press-card .card-body,
.book-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.press-card .card-title,
.book-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.press-card .card-text,
.book-card .card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.press-card .text-muted,
.book-card .text-muted {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.press-card .btn,
.book-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card-date {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-card-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    color: var(--accent-gold);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 300px;
    position: relative;
    border-left: 4px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.testimonial-info h5 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: var(--white);
    padding: 5rem 0;
}

.contact-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: var(--cream);
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 30px;
    text-align: center;
}

.contact-item h5 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-control {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(217, 119, 6, 0.25);
    outline: none;
}

.contact-image {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.footer-brand h5 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Loading Spinner */
.loading-spinner {
    padding: 3rem;
    color: var(--text-light);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px; /* Increased padding on tablets */
        min-height: calc(100vh - 100px); /* Adjust min-height to account for padding */
    }
    
    .hero-content {
        padding-top: 30px; /* Increased content padding on tablets */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-logo-section {
        height: 300px;
        margin-top: 2rem;
    }
    
        .hero-logo img {
        max-width: 200px;
    }

    .hero-symbols {
        height: 200px;
        width: 300px;
    }

    .symbol {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .about-circular-image {
        margin-bottom: 2rem;
    }
    
    .about-large-image img {
        max-width: 90%;
    }
    
    .about-image-container {
        width: 180px;
        height: 180px;
    }
    
    .contact-image {
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 90px; /* Increased padding on mobile phones */
        min-height: calc(100vh - 90px); /* Adjust min-height to account for padding */
    }
    
    .hero-content {
        padding-top: 25px; /* Increased content padding on mobile */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
        .hero-logo img {
        max-width: 160px;
    }

    .hero-symbols {
        height: 150px;
        width: 250px;
    }

    .symbol {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .about-large-image img {
        max-width: 85%;
    }
    
    .about-circular-image {
        margin-bottom: 1.5rem;
    }
    
    .about-image-container {
        width: 150px;
        height: 150px;
    }
    
    .contact-image img {
        max-width: 90%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-section {
        padding-top: 80px; /* Increased padding for very small screens */
        min-height: calc(100vh - 80px);
    }
    
    .hero-content {
        padding-top: 20px; /* Increased padding for very small screens */
    }
    
    .hero-title {
        font-size: 1.8rem; /* Smaller font for very small screens */
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Safari-specific fixes for iOS */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        padding-top: 140px; /* Extra padding for iOS Safari */
        min-height: calc(100vh - 140px);
    }
    
    .hero-content {
        padding-top: 30px; /* Extra content padding for iOS Safari */
    }
    
    .hero-title {
        margin-top: 30px; /* Extra margin for iOS Safari */
    }
}

/* iOS Safari specific viewport fixes */
@media screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 480px) {
    .hero-section {
        padding-top: 150px; /* Even more padding for high-DPI iOS devices */
        min-height: calc(100vh - 150px);
    }
    
    .hero-content {
        padding-top: 40px;
    }
    
    .hero-title {
        margin-top: 40px;
        font-size: 1.6rem; /* Smaller font for iOS Safari */
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
}

/* Additional iOS Safari fixes */
@media only screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-section {
        padding-top: 160px; /* Maximum padding for iOS Safari */
        min-height: calc(100vh - 160px);
    }
    
    .hero-content {
        padding-top: 50px;
    }
    
    .hero-title {
        margin-top: 50px;
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    body {
        padding-top: 100px; /* Increased body padding for iOS Safari */
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
} 

/* Horizontal Scroll Styles for Blog and Testimonials */
.blog-scroll-container,
.testimonials-scroll-container,
.events-scroll-container,
.press-scroll-container,
.expertise-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px;
    margin: 0 -10px;
}

.blog-scroll-container .row,
.testimonials-scroll-container .row,
.events-scroll-container .row,
.press-scroll-container .row,
.expertise-scroll-container .row {
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) transparent;
}

.blog-scroll-container .row::-webkit-scrollbar,
.testimonials-scroll-container .row::-webkit-scrollbar,
.events-scroll-container .row::-webkit-scrollbar,
.press-scroll-container .row::-webkit-scrollbar,
.expertise-scroll-container .row::-webkit-scrollbar {
    height: 6px;
}

.blog-scroll-container .row::-webkit-scrollbar-track,
.testimonials-scroll-container .row::-webkit-scrollbar-track,
.events-scroll-container .row::-webkit-scrollbar-track,
.press-scroll-container .row::-webkit-scrollbar-track,
.expertise-scroll-container .row::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.blog-scroll-container .row::-webkit-scrollbar-thumb,
.testimonials-scroll-container .row::-webkit-scrollbar-thumb,
.events-scroll-container .row::-webkit-scrollbar-thumb,
.press-scroll-container .row::-webkit-scrollbar-thumb,
.expertise-scroll-container .row::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

.blog-scroll-container .row::-webkit-scrollbar-thumb:hover,
.testimonials-scroll-container .row::-webkit-scrollbar-thumb:hover,
.events-scroll-container .row::-webkit-scrollbar-thumb:hover,
.press-scroll-container .row::-webkit-scrollbar-thumb:hover,
.expertise-scroll-container .row::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}

.blog-scroll-container .col-lg-4,
.testimonials-scroll-container .col-lg-4,
.events-scroll-container .col-lg-4,
.press-scroll-container .col-lg-4,
.expertise-scroll-container .col-lg-4 {
    flex: 0 0 auto;
    width: 350px;
    margin-right: 20px;
}

.blog-scroll-container .col-lg-4:last-child,
.testimonials-scroll-container .col-lg-4:last-child,
.events-scroll-container .col-lg-4:last-child,
.press-scroll-container .col-lg-4:last-child,
.expertise-scroll-container .col-lg-4:last-child {
    margin-right: 0;
}

/* Ensure blog cards and testimonial cards work well in horizontal scroll */
.blog-card,
.testimonial-card,
.event-card,
.press-card,
.expertise-card {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.blog-card-body,
.testimonial-card,
.event-card-body,
.press-card-body,
.expertise-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .blog-scroll-container .col-lg-4,
    .testimonials-scroll-container .col-lg-4,
    .events-scroll-container .col-lg-4,
    .press-scroll-container .col-lg-4,
    .expertise-scroll-container .col-lg-4 {
        width: 280px;
        margin-right: 15px;
    }
    
    .blog-scroll-container,
    .testimonials-scroll-container,
    .events-scroll-container,
    .press-scroll-container {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .blog-scroll-container .col-lg-4,
    .testimonials-scroll-container .col-lg-4,
    .events-scroll-container .col-lg-4,
    .press-scroll-container .col-lg-4 {
        width: 250px;
        margin-right: 10px;
    }
} 

/* Mobile Hero Section */
.mobile-hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo-container {
    padding: 2rem 0;
}

/* Academic Leadership Section */
.academic-leadership-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)) !important;
}

.academic-leadership-section h2 {
    color: var(--white);
}

.academic-leadership-section .text-gold {
    color: var(--accent-gold) !important;
}

/* Events and Press Sections */
.events-scroll-container,
.press-scroll-container {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.events-scroll-container .row,
.press-scroll-container .row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    margin: 0;
}

.events-scroll-container .row::-webkit-scrollbar,
.press-scroll-container .row::-webkit-scrollbar {
    height: 8px;
}

.events-scroll-container .row::-webkit-scrollbar-track,
.press-scroll-container .row::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.events-scroll-container .row::-webkit-scrollbar-thumb,
.press-scroll-container .row::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

.events-scroll-container .row::-webkit-scrollbar-thumb:hover,
.press-scroll-container .row::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}

.events-scroll-container .col-lg-4,
.press-scroll-container .col-lg-4 {
    flex: 0 0 auto;
    width: 350px;
    margin-right: 20px;
    margin-bottom: 0;
}

.events-scroll-container .col-lg-4:last-child,
.press-scroll-container .col-lg-4:last-child {
    margin-right: 0;
}

/* Event and Press Cards */
.event-card,
.press-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.event-card:hover,
.press-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card img,
.press-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-body,
.press-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title,
.press-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.event-card-text,
.press-card-text {
    color: var(--text-light);
    flex: 1;
}

.event-card-date,
.press-card-date {
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mobile-hero-section {
        min-height: 30vh;
    }
    
    .mobile-logo-container img {
        max-width: 50% !important;
    }
    
    .academic-leadership-section {
        padding: 3rem 0;
    }
    
    .events-scroll-container .col-lg-4,
    .press-scroll-container .col-lg-4 {
        width: 280px;
        margin-right: 15px;
    }
    
    .events-scroll-container,
    .press-scroll-container {
        padding: 0 10px;
    }
    
    /* Fix mobile navbar issues */
    .navbar-toggler {
        border: 2px solid var(--white);
        padding: 0.5rem 0.75rem;
        background: var(--dark-gray);
        border-radius: 5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
        background: var(--dark-gray);
    }
    
    .navbar-toggler:hover {
        background: var(--text-dark);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Hamburger menu background fix */
    .navbar-collapse {
        background-color: rgba(0, 32, 96, 0.95) !important; /* Dark blue with slight transparency */
        border-radius: 8px !important;
        margin-top: 10px !important;
        padding: 1rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        z-index: 1050 !important;
    }
    
    .navbar-collapse a,
    .navbar-collapse .nav-link {
        color: white !important;
        font-weight: 500 !important;
    }
    
    .navbar-collapse .nav-link:hover {
        color: #ffd700 !important; /* Gold color on hover */
    }
    
    /* Fix the hamburger menu background when it opens */
    .navbar-collapse.show {
        background-color: rgba(0, 32, 96, 0.95) !important; /* Opaque dark blue */
        padding: 1rem !important;
        position: absolute !important;
        top: 60px !important; /* Adjust if your navbar height differs */
        left: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        border-radius: 0 0 8px 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Make sure menu text is readable when opened */
    .navbar-collapse.show a,
    .navbar-collapse.show .nav-link {
        color: white !important;
        font-weight: 500 !important;
    }
    
    .navbar-collapse.show .nav-link:hover {
        color: #ffd700 !important; /* Gold color on hover */
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-radius: 4px !important;
    }
    
    .navbar-nav .dropdown-menu {
        background: var(--dark-gray);
        border: 1px solid var(--dark-gray);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav .dropdown-item {
        color: var(--white);
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .dropdown-item:hover {
        background: var(--text-dark);
        color: var(--white);
    }
    
    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Ensure brand name fits on one line */
    .navbar-brand {
        font-size: 1.2rem;
        max-width: 200px;
    }
    
    .brand-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 576px) {
    .mobile-hero-section {
        min-height: 25vh;
    }
    
    .mobile-logo-container img {
        max-width: 40% !important;
    }
    
    .events-scroll-container .col-lg-4,
    .press-scroll-container .col-lg-4 {
        width: 250px;
        margin-right: 10px;
    }
    
    .event-card,
    .press-card {
        min-height: 250px;
    }
    
    .event-card img,
    .press-card img {
        height: 150px;
    }
    
    /* Enhanced mobile navbar for very small screens */
    .navbar-toggler {
        background: var(--text-dark);
        border: 2px solid var(--white);
        padding: 0.4rem 0.6rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
        max-width: 180px;
    }
    
    .navbar-nav .dropdown-menu {
        background: var(--text-dark);
        border: 1px solid var(--dark-gray);
    }
    
    /* Additional hamburger menu fix for very small screens */
    .navbar-collapse {
        background-color: rgba(0, 32, 96, 0.98) !important; /* More opaque for better visibility */
        border-radius: 8px !important;
        margin-top: 10px !important;
        padding: 1rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
        z-index: 1050 !important;
    }
    
    .navbar-collapse a,
    .navbar-collapse .nav-link {
        color: white !important;
        font-weight: 500 !important;
        font-size: 1.1rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-collapse .nav-link:hover {
        color: #ffd700 !important; /* Gold color on hover */
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-radius: 4px !important;
    }
    
    /* Fix the hamburger menu background when it opens on small screens */
    .navbar-collapse.show {
        background-color: rgba(0, 32, 96, 0.98) !important; /* More opaque for better visibility */
        padding: 1rem !important;
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        border-radius: 0 0 8px 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    }
    
    .navbar-collapse.show a,
    .navbar-collapse.show .nav-link {
        color: white !important;
        font-weight: 500 !important;
        font-size: 1.1rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-collapse.show .nav-link:hover {
        color: #ffd700 !important; /* Gold color on hover */
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-radius: 4px !important;
    }
} 

/* Event Carousel Styles */
.event-card .carousel {
    border-radius: 0.375rem 0.375rem 0 0;
    overflow: hidden;
}

.event-card .carousel-item {
    height: 200px;
}

.event-card .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.event-card .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

.event-card .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 2px;
}

.event-card .carousel-indicators button.active {
    background-color: var(--white);
}

.event-card .carousel-control-prev,
.event-card .carousel-control-next {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
}

.event-card .carousel-control-prev-icon,
.event-card .carousel-control-next-icon {
    width: 15px;
    height: 15px;
}

/* Event Modal Styles */
#eventDetailsModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#eventDetailsModal .modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#eventDetailsModal .modal-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

#eventDetailsModal .modal-body {
    padding: 2rem;
}

#eventDetailsModal .event-details-content h4 {
    color: var(--primary-blue);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

#eventDetailsModal .event-description h5 {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

#eventDetailsModal .event-media-section h5 {
    color: var(--primary-blue);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.5rem;
}

#eventDetailsModal .event-images h6,
#eventDetailsModal .event-videos h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

#eventDetailsModal .event-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

#eventDetailsModal .event-image-item img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#eventDetailsModal .event-image-item img:hover {
    transform: scale(1.05);
}

#eventDetailsModal .event-video-item .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#eventDetailsModal .event-video-item .btn:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Embedded video styles */
#eventDetailsModal .event-video-item iframe,
#pressDetailsModal .press-video-item iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

#eventDetailsModal .event-video-item iframe:hover,
#pressDetailsModal .press-video-item iframe:hover {
    transform: scale(1.02);
}

#eventDetailsModal .event-video-item h6,
#pressDetailsModal .press-video-item h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#eventDetailsModal .event-video-item .btn-outline-secondary,
#pressDetailsModal .press-video-item .btn-outline-secondary {
    border-radius: 6px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

#eventDetailsModal .event-video-item .btn-outline-secondary:hover,
#pressDetailsModal .press-video-item .btn-outline-secondary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

/* Event page video styles */
#event-videos .card .ratio-16x9 {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#event-videos .card .ratio-16x9 iframe {
    border: none;
    transition: transform 0.3s ease;
}

#event-videos .card .ratio-16x9 iframe:hover {
    transform: scale(1.02);
}

#eventDetailsModal .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 2rem;
}

#eventDetailsModal .modal-footer .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

/* Responsive adjustments for event modal */
@media (max-width: 768px) {
    #eventDetailsModal .modal-dialog {
        margin: 1rem;
    }
    
    #eventDetailsModal .modal-body {
        padding: 1.5rem;
    }
    
    #eventDetailsModal .event-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    #eventDetailsModal .event-image-item img {
        max-height: 120px;
    }
    
    /* Embedded video responsive styles */
    #eventDetailsModal .event-video-item iframe,
    #pressDetailsModal .press-video-item iframe {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    #eventDetailsModal .modal-body {
        padding: 1rem;
    }
    
    #eventDetailsModal .event-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
    }
    
    #eventDetailsModal .event-image-item img {
        max-height: 100px;
    }
    
    /* Embedded video responsive styles */
    #eventDetailsModal .event-video-item iframe,
    #pressDetailsModal .press-video-item iframe {
        max-height: 180px;
    }
    
    #eventDetailsModal .event-video-item h6,
    #pressDetailsModal .press-video-item h6 {
        font-size: 0.9rem;
    }
} 

/* Event and Press Card Carousel Styles */
.event-card .carousel,
.press-card .carousel {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 0;
    background-color: #f8f9fa; /* Light background for images that don't fill */
}

.event-card .carousel-item,
.press-card .carousel-item {
    height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.event-card .carousel-item img,
.press-card .carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Changed from cover to contain to prevent cutoff */
    object-position: center;
    border-radius: 8px 8px 0 0;
}

/* Ensure single images also have proper styling */
.event-card img.card-img-top,
.press-card img.card-img-top {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain; /* Changed from cover to contain */
    object-position: center;
    border-radius: 8px 8px 0 0;
    background-color: #f8f9fa;
    padding: 10px; /* Add padding to prevent images from touching edges */
}

/* Ensure carousel indicators are visible and properly positioned */
.event-card .carousel-indicators,
.press-card .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
    z-index: 10;
}

.event-card .carousel-indicators button,
.press-card .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.event-card .carousel-indicators button.active,
.press-card .carousel-indicators button.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* Carousel control buttons */
.event-card .carousel-control-prev,
.event-card .carousel-control-next,
.press-card .carousel-control-prev,
.press-card .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.event-card .carousel-control-prev:hover,
.event-card .carousel-control-next:hover,
.press-card .carousel-control-prev:hover,
.press-card .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.event-card .carousel-control-prev-icon,
.event-card .carousel-control-next-icon,
.press-card .carousel-control-prev-icon,
.press-card .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Card body padding to ensure content doesn't overlap */
.event-card-body,
.press-card-body {
    padding: 1.25rem;
    border-top: none;
}

/* Ensure carousel auto-rotation works */
.carousel[data-bs-ride="carousel"] {
    animation: none;
}

/* Fix for carousel not working on multiple cards */
.carousel.slide {
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

/* Ensure proper spacing for cards */
.event-card,
.press-card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.event-card:hover,
.press-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} 

/* Photo Modal Styles */
#photoModal .modal-dialog {
    max-width: 90vw;
    margin: 1.75rem auto;
}

#photoModal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
    border-radius: 12px;
    position: relative;
}

#photoModal .modal-header {
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

#photoModal .modal-title {
    color: white;
    font-weight: 600;
}

#photoModal .btn-close {
    filter: invert(1);
}

#photoModal .modal-body {
    padding: 0;
    background-color: transparent;
}

#photo-modal-image {
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    max-height: 80vh;
    object-fit: contain;
}

/* Stronger z-index for photo modal to always be on top */
#photoModal {
    z-index: 12000 !important;
}
#photoModal .modal-backdrop {
    z-index: 11999 !important;
}
#photoModal .btn-close {
    z-index: 12001 !important;
}

/* Photo modal close button styling */
#photoModal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10000;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#photoModal .btn-close:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Allow clicking outside image to close */
#photoModal .modal-body {
    cursor: pointer;
    padding: 0;
}

#photoModal .modal-body img {
    cursor: default;
}

#photoModal .modal-footer {
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#photoModal .modal-footer .btn {
    border-radius: 6px;
    font-weight: 500;
} 

/* Book card image height fixes - match press/event cards */
.book-card .card-img-top {
    height: 150px !important;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.book-card .carousel {
    height: 150px !important;
}

.book-card .carousel-item {
    height: 150px !important;
}

.book-card .carousel-item img {
    height: 150px !important;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* Ensure book cards have consistent height */
.book-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card .card-text:last-child {
    flex-grow: 1;
}

/* Video display fixes */
.item-video-item iframe,
.press-video-item iframe,
.event-video-item iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Video container fixes */
.ratio.ratio-16x9 {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.ratio.ratio-16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
} 

/* Mobile navbar fixes */
@media (max-width: 768px) {
    .navbar-toggler {
        background-color: rgba(0, 0, 0, 0.95) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        padding: 10px 15px !important;
        border-radius: 8px !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.98) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        color: white !important;
        background-color: transparent !important;
        font-weight: 500 !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: white !important;
        transform: translateX(5px) !important;
    }
    
    /* Mobile navbar brand name */
    .navbar-brand {
        font-size: 1.2rem !important;
        font-weight: bold !important;
        max-width: 200px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Mobile hero section fixes */
    .mobile-hero-section {
        background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .mobile-hero-section .display-5 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .mobile-hero-section .display-6 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .mobile-hero-section .lead {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }
    
    .mobile-logo-section {
        margin-top: 2rem !important;
    }
    
    .mobile-logo-section img {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
    }
    
    .mobile-logo-section .logo-text h3 {
        font-size: 1.5rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    .mobile-logo-section .logo-text p {
        font-size: 1rem !important;
        opacity: 0.9 !important;
    }
} 