/* BDHSP Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Shonar+Bangla:wght@400;700&display=swap');

:root {
    --primary-color: #1976d2;
    --secondary-color: #424242;
    --success-color: #388e3c;
    --warning-color: #f57c00;
    --danger-color: #d32f2f;
    --info-color: #0288d1;
    --light-color: #f5f5f5;
    --dark-color: #212121;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --top-bar-height: 32px;
    --marquee-bar-height: 40px;
    --navbar-height: 80px;
    --navbar-mobile-height: 68px;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease;
    opacity: 0;
}

.video-overlay .btn-floating {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.position-relative .video-overlay {
    opacity: 1;
}

.pdf-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.btn-pdf {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    background: #1b65d6;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.7);
}

.modal-header {
    background: #1d6b33;
    color: #fff;
}

/* Dark theme variables */
[data-theme="dark"] {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
}

/* Light theme variables */
[data-theme="light"] {
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #212529;
    --text-secondary: #6c757d;
}

/* Base styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color, #ffffff);
    color: var(--text-color, #212529);
    transition: var(--transition);
}

/* Dark theme styles */
[data-theme="dark"] {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.wavy-underline {
    text-decoration: underline wavy #800080; /* Purple color */
    text-underline-offset: 4px;
}

.text-red {
    color: #dc3545 !important; /* Bootstrap's red color */
}

.required-star {
    color: #d32f2f;
    font-weight: 700;
    margin-left: 4px;
}

[data-theme="dark"] .navbar {
    background-color: var(--surface-color) !important;
    border-bottom: 1px solid #333;
}

[data-theme="dark"] .card {
    background-color: var(--surface-color);
    border-color: #333;
}

[data-theme="dark"] .bg-light {
    background-color: var(--surface-color) !important;
}

footer.bg-dark {
    background-color: #001f3a !important;
    color: #fff;
}

footer.bg-dark .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

footer.bg-dark a {
    color: #ffffff !important;
}

/* Navbar link as button (light / default theme) */
.navbar .nav-link {
    color: #1976d2 !important; /* blue text */
    font-weight: 700;
    padding: 6px 14px !important;
    border-radius: 20px;
    margin-inline: 3px;
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff !important; /* white text */
    background-color: #1976d2 !important; /* blue bg on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
}

.navbar .nav-link.active {
    color: #ffffff !important; /* white text */
    background-color: #388e3c !important; /* green bg on active */
    box-shadow: 0 4px 12px rgba(56, 142, 60, 0.4);
    transform: translateY(-1px);
}

/* Active state indicator */
.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Dark theme navigation */
[data-theme="dark"] .navbar .nav-link {
    color: #64b5f6 !important; /* lighter blue for dark theme */
}

[data-theme="dark"] .navbar .nav-link:hover,
[data-theme="dark"] .navbar .nav-link:focus {
    color: #ffffff !important;
    background-color: #1565c0 !important; /* darker blue for dark theme */
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.4);
}

[data-theme="dark"] .navbar .nav-link.active {
    color: #ffffff !important;
    background-color: #2e7d32 !important; /* darker green for dark theme */
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.5);
}

.marquee-bar {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    right: 0;
    height: var(--marquee-bar-height);
    display: flex;
    align-items: center;
    z-index: 1035;
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
    background: #0d47a1;
}

.marquee-bar marquee {
    display: block;
    width: 100%;
    line-height: var(--marquee-bar-height);
    white-space: nowrap;
}

/* Hero Section */
.hero-section {
    height: 70vh;
    position: relative;
    overflow: hidden;
}

/* Mini slider below the hero section */
.mini-slider {
    min-height: 3cm;
    background: linear-gradient(135deg, rgba(25,118,210,0.95), rgba(56,142,60,0.85));
}

@media (max-width: 576px) {
    .mini-slider {
        padding-top: -5rem;
        margin-top: -9.6rem;
    }
}

.mini-slide {
    min-height: 2cm;
    color: #ffffff;
}

.mini-slide h6 {
    font-size: 2rem;
    font-weight: 600; 
}

.mini-slide p {
    font-size: 1rem;
}

@media (max-width: 576px) {
    .mini-slider {
        padding-top: 1.5rem;
    }

    .mini-slide h6,
    .mini-slide p {
        margin-top: 0.50rem;
    }

    .mini-slide h6 {
        font-size: 1.4rem;
    }
}

.btn-solid {
    background: linear-gradient(135deg, #2544dd, #2f65f5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 10px rgba(37,68,221,0.4);
}

.btn-solid:hover,
.btn-solid:focus {
    background: linear-gradient(135deg, #1b2aa8, #2544dd);
    color: #fff;
    box-shadow: 0 6px 15px rgba(37,68,221,0.5);
}

.carousel-bg {
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.1);
}

.carousel-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

@media (max-width: 576px) {
    .hero-section .carousel-bg {
        height: 28vh;
    }
}

.carousel-content {
    text-align: left;
    max-width: 800px;
    padding: 0 20px 40px 40px;
}

.hero-slogan {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 2rem;
    letter-spacing: 0.05rem;
}

@media (max-width: 768px) {
    .carousel-content {
        padding: 0 16px 20px 16px;  /* less bottom padding on small screens */
        margin-bottom: 40px;        /* push block a bit above the bottom */
    }
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card .card-title a {
    color: var(--primary-color);
    font-weight: 600;
}

.service-card .card-title a:hover {
    color: var(--secondary-color);
}

.service-icon {
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mission / Vision / Values card layout */
.about-card-layout {
    border: 1px solid #0b3c5d;
    border-radius: 16px;
    overflow: hidden;
    min-height: 130px;
}

.about-card-layout .card-body {
    padding: 1.25rem 1.5rem;
}

.about-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.about-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.about-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-card-text {
    flex: 1;
}

.about-card-heading {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.about-card-text p {
    margin: 0;
    color: #0a1c2e;
    line-height: 1.5;
}

.detail-page-image {
    max-width: 280px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.flag-image {
    max-width: 420px;
}

.detail-paragraph {
    margin-left: 5rem;
}

.detail-paragraph-secondary {
    margin-left: 4rem;
    margin-bottom: 0.5rem;
}

.detail-paragraph-secondary.notification-body {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.sequence-entry {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.sequence-member-id {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0d47a1;
}

.sequence-member-seq {
    font-size: 0.9rem;
    color: #546e7a;
}

.highlight-blue {
    color: #0d6efd;
}

.presidium-details {
    padding-top: 0;
    margin-top: 0;
    text-align: justify;
    text-justify: inter-word;
}
.presidium-details p {
    margin-bottom: 1rem;
    line-height: 1.4;
    margin-left: 3rem;
}

.presidium-schedule-card {
    transition: margin 0.3s ease;
}

@media (max-width: 768px) {
    .hero-section {
        margin-bottom: 0;
    }

    .presidium-schedule-card {
        margin-top: -10rem;
    }

    .presidium-schedule-card + .py-5:not(.bg-light) {
        margin-top: 0;
    }

    .presidium-election-page .hero-section + .py-5.bg-light {
        margin-top: -10rem;
        padding-top: 0;
    }

    .presidium-evaluation-page .hero-section + .py-5.bg-light {
        margin-top: -10rem;
        padding-top: 0;
    }
    .presidium-dismissal-page .hero-section + .py-5.bg-light {
        margin-top: -10rem;
        padding-top: 0;
    }
    .presidium-resignation-page .hero-section + .py-5.bg-light {
        margin-top: -10rem;
        padding-top: 0;
    }
    .presidium-term-page .hero-section + .py-5.bg-light {
        margin-top: -10rem;
        padding-top: 0;
    }

    #videoGallerySection {
        margin-top: -10rem;
    }

    .about-content-section {
        margin-top: -10rem;
    }
}

.detail-justify {
    text-align: justify;
    text-justify: inter-word;
}

.special-btn-wrapper {
    text-align: right;
}

.upcoming-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.upcoming-heading .side-star {
    color: #28a745;
    font-size: 1.8rem;
}

.upcoming-heading .heading-content {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.heading-content a.text-primary {
    color: #7b1fa2 !important;
}

@media (max-width: 768px) {
    .upcoming-heading {
        font-size: 1.4rem;
    }
}

.custom-star {
    width: 70px;
    height: 70px;
    display: inline-block;
    background-image: url('../assets/images/1.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    top: -8px;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.vertical-gallery {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.vertical-gallery::-webkit-scrollbar {
    width: 6px;
}

.vertical-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.vertical-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.social-icons a {
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.footer-social .social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.3s ease;
}

.footer-social .social-btn:hover {
    background: rgba(255,255,255,0.35);
    text-decoration: none;
    transform: translateY(-2px) scale(1.05);
}

.footer-social .social-btn i {
    transition: transform 0.3s ease;
}

.footer-social .social-btn:hover i {
    transform: scale(1.1);
}

.social-facebook {
    background: #3b5998 !important;
}

.social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
}

.social-youtube {
    background: #ff0000 !important;
}

.social-tiktok {
    background: #000000 !important;
}

.social-telegram {
    background: #0088cc !important;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    z-index: 1000;
    border-top: 1px solid #e9ecef;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
}

.bottom-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 12px;
    transition: var(--transition);
}

.bottom-nav-item a:hover,
.bottom-nav-item a.active {
    color: var(--primary-color);
}

.bottom-nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Registration Form */
.registration-form {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin: 20px 0;
}

/* Dark theme for registration form */
[data-theme="dark"] .registration-form {
    background: var(--surface-color);
    border: 1px solid #333;
    color: var(--text-color);
}

[data-theme="dark"] .form-section {
    border-bottom-color: #333;
}

[data-theme="dark"] .form-section h4 {
    color: var(--text-color);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-color);
    border-color: #444;
    color: var(--text-color);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-label {
    color: var(--text-color);
}

[data-theme="dark"] .alert-danger {
    background-color: #2d1b1b;
    border-color: #8b0000;
    color: #ff6b6b;
}

[data-theme="dark"] .alert-success {
    background-color: #1a2e1a;
    border-color: #2d5a2d;
    color: #75b775;
}


[data-theme="dark"] .gallery-item {
    background: var(--bg-color);
    border: 1px solid #444;
}

[data-theme="dark"] .gallery-item:hover {
    background: var(--surface-color);
    border-color: #555;
}

[data-theme="dark"] .vertical-gallery {
    background: transparent;
}

[data-theme="dark"] .gallery-section h4 {
    color: #ff6b6b !important;
}

[data-theme="dark"] .gallery-section {
    background: var(--surface-color) !important;
    border: 1px solid #333;
}


/* Dark theme for mobile menu toggle */
[data-theme="dark"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    color: white !important;
}

[data-theme="dark"] .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar-toggler .fas {
    color: white !important;
}

/* Dark mode white text for about page */
[data-theme="dark"] .dark-mode-white-text {
    color: white !important;
}
.form-section {
    margin-top: 40px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.payment-method {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(25, 118, 210, 0.05);
}

.payment-method img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* News Cards */
.news-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* FAQ Styles */
.faq-item {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 500;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 15px 20px;
    background: white;
    display: none;
}

.faq-answer.show {
    display: block;
}

/* Admin Dashboard */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #b3b3b3;
    padding: 12px 20px;
    border-radius: 0;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 20px;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #1565c0);
    color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }
    
    .carousel-bg {
        height: 50vh;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .service-card .card-body {
        flex-direction: column;
    }
    
    .service-icon {
        margin-bottom: 15px;
        margin-left: 0 !important;
    }
    
    .gallery-section {
        position: static;
        margin-top: 20px;
    }
    
    .registration-form {
        padding: 20px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 576px) {
    .carousel-content {
        padding: 0 15px;
    }
    
    .carousel-content h1 {
        font-size: 1.5rem;
    }
    
    .carousel-content .lead {
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 15px;
    }
    
    .bottom-nav-item {
        padding: 6px 2px;
    }
    
    .bottom-nav-item a {
        font-size: 10px;
    }
    
    .bottom-nav-item i {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-bottom-nav,
    #backToTop,
    .btn,
    .social-icons {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .hero-section {
        height: auto;
        page-break-after: always;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

.shadow-custom {
    box-shadow: var(--box-shadow);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

.transition-custom {
    transition: var(--transition);
}

/* Text Utilities */
.text-justify {
    text-align: justify;
}
