/* Sopner Faridganj - Main Stylesheet */

* {
    font-family: 'Hind Siliguri', sans-serif;
}

/* See More Button Styles */
.hidden-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.hidden-content.show {
    display: block;
    opacity: 1;
}

.see-more-btn .btn-icon {
    transition: transform 0.3s ease;
}

.see-more-btn.active .btn-icon {
    transform: rotate(180deg);
}

:root {
    --primary-color: #10b981;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
}

.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    transition: opacity 0.3s ease-out;
}

.hidden-content.show {
    display: block;
    opacity: 1;
}

.see-more-btn .btn-icon {
    transition: transform 0.3s ease;
}

.see-more-btn.active .btn-icon {
    transform: rotate(180deg);
}

:root {
    --primary-color: #10b981;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
}

.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --header-bg: #ffffff;
    --header-text: #1f2937;
    --header-text-hover: #10b981;
    --header-logo-text: #1f2937;
    --ics-card-bg: linear-gradient(to bottom right, #faf5ff, #e0e7ff);
}

.dark-theme {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #0f3460;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --header-bg: #10b981;
    --header-text: #ffffff;
    --header-text-hover: #d1fae5;
    --header-logo-text: #ffffff;
    --ics-card-bg: linear-gradient(to bottom right, #1e293b, #0f172a);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-card {
    background-color: var(--bg-card);
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.border-custom {
    border-color: var(--border-color);
}

.hero-gradient {
    background: var(--hero-gradient);
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.smooth-transition {
    transition: all 0.3s ease;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
    opacity: 0.6;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    opacity: 1;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Sidebar */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--header-bg);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 1rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-link {
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: rgba(16, 185, 129, 0.1);
    transform: translateX(-5px);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #10b981;
    color: var(--text-primary);
    padding: 10px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #10b981;
    color: white;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.activity-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.form-input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    width: 2px;
    height: calc(100% + 16px);
    background: var(--border-color);
}

.timeline-item:last-child::after {
    display: none;
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
}

.gallery-modal.active {
    display: block;
}

.gallery-modal-content {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

/* Scholarship Awards Dark Theme Fix */
.dark-theme .scholarship-awards-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-color: #475569 !important;
}

.dark-theme .scholarship-award-card {
    background-color: #1f2937 !important;
    border: 1px solid #475569;
}

/* Folder Design Styles */
.folder-design {
    position: relative;
    transition: all 0.3s ease;
}

.folder-tab {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Advisor Card Fixed Heights */
.advisor-card-container {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.advisor-card-container img {
    flex-shrink: 0;
}

.advisor-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure institution text wraps properly */
.advisor-institution {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Sponsor Section Background */
.sponsor-section-bg {
    background: linear-gradient(to right, rgb(250, 245, 255), rgb(252, 231, 243), rgb(239, 246, 255));
}

.dark-theme .sponsor-section-bg {
    background: linear-gradient(to right, rgb(30, 41, 59), rgb(6, 78, 59), rgb(30, 41, 59));
}

/* Sponsor Logo Container */
.sponsor-logo-container {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    transition: all 0.3s ease;
}

.dark-theme .sponsor-logo-container {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

/* ICS Calendar Card Background */
.ics-card-bg {
    background: var(--ics-card-bg);
    transition: background 0.3s ease;
}

/* Media Queries */
@media (max-width: 768px) {
    .hidden-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .hidden-content.show {
        max-height: 2000px;
        transition: max-height 1s ease-in;
    }

    .see-more-btn .btn-icon {
        transition: transform 0.3s ease;
    }

    .see-more-btn.active .btn-icon {
        transform: rotate(180deg);
    }

    .gallery-modal-content {
        margin: 20px auto;
        padding: 15px;
    }

    .splash-content img {
        max-width: 95%;
        max-height: 80vh;
    }

    .splash-close-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: -10px;
        right: -10px;
    }
}

/* Extra small screens: ensure header title fits in one line */
@media (max-width: 420px) {
    header nav .container h1 {
        font-size: 1rem;
    }

    header nav .container img {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 769px) {
    .hidden-content {
        max-height: none;
        overflow: visible;
        opacity: 1;
    }

    .see-more-btn {
        display: none;
    }
}

header nav .container img {
    width: 36px;
    height: 36px;
}

.advisor-institution {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .hidden-content {
        max-height: none;
        overflow: visible;
        opacity: 1;
    }

    .see-more-btn {
        display: none;
    }
}



/* Advisor Position/Profession Styling */
.advisor-position {
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-weight: 500;
    color: #ffb01d;
    margin-bottom: 0;
    /* margin-top: 0.25rem; */
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Committee Card Fixed Heights */
#committee2025Container .flex-shrink-0>div,
#mobileCommittee2025Container .flex-shrink-0>div {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem !important;
    /* Match সভাপতি card p-8 padding */
}

/* Ensure committee member images don't shrink */
#committee2025Container img,
#mobileCommittee2025Container img {
    flex-shrink: 0;
}

/* Reduce spacing between position and name - MINIMAL */
#committee2025Container .font-bold,
#mobileCommittee2025Container .font-bold {
    margin-bottom: 0 !important;
    /* No spacing between position and name */
}

/* Ensure extra text (like additional roles) has consistent spacing */
#committee2025Container .text-xs,
#mobileCommittee2025Container .text-xs {
    min-height: 1.25rem;
}


/* Committee Card Fixed Heights */
#committee2025Container .flex-shrink-0>div,
#mobileCommittee2025Container .flex-shrink-0>div {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem !important;
    /* Match সভাপতি card p-8 padding */
}

/* Ensure committee member images don't shrink */
#committee2025Container img,
#mobileCommittee2025Container img {
    flex-shrink: 0;
}

/* Reduce spacing between position and name */
#committee2025Container .font-bold,
#mobileCommittee2025Container .font-bold {
    margin-bottom: 0.25rem !important;
    /* Reduced spacing */
}

/* Ensure extra text (like additional roles) has consistent spacing */
#committee2025Container .text-xs,
#mobileCommittee2025Container .text-xs {
    min-height: 1.25rem;
}

/* Committee Card Fixed Heights */
#committee2025Container .flex-shrink-0>div,
#mobileCommittee2025Container .flex-shrink-0>div {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensure committee member images don't shrink */
#committee2025Container img,
#mobileCommittee2025Container img {
    flex-shrink: 0;
}

/* Ensure extra text (like additional roles) has consistent spacing */
#committee2025Container .text-xs,
#mobileCommittee2025Container .text-xs {
    min-height: 1.25rem;
}

/* Founding Members Infinite Scroll Animation */
.founding-scroll-container {
    padding: 20px 0;
}

.founding-scroll-track {
    animation: founding-scroll 7s linear infinite;
}

.founding-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes founding-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.see-more-btn .btn-icon {
    transition: transform 0.3s ease;
}

.see-more-btn.active .btn-icon {
    transform: rotate(180deg);
}

.gallery-modal-content {
    margin: 20px auto;
    padding: 15px;
}

.splash-content img {
    max-width: 95%;
    max-height: 80vh;
}

.splash-close-btn {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: -10px;
    right: -10px;
}


/* Extra small screens: ensure header title fits in one line */
@media (max-width: 420px) {
    header nav .container h1 {
        font-size: 1rem;
    }

    header nav .container img {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 769px) {
    .hidden-content {
        max-height: none;
        overflow: visible;
        opacity: 1;
    }

    .see-more-btn {
        display: none;
    }
}

header nav .container img {
    width: 36px;
    height: 36px;
}

.advisor-institution {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .hidden-content {
        max-height: none;
        overflow: visible;
        opacity: 1;
    }

    .see-more-btn {
        display: none;
    }
}



/* Advisor Position/Profession Styling */
.advisor-position {
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-weight: 500;
    color: #ffb01d;
    margin-bottom: 0;
    /* margin-top: 0.25rem; */
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Committee Card Fixed Heights */
#committee2025Container .flex-shrink-0>div,
#mobileCommittee2025Container .flex-shrink-0>div {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem !important;
    /* Match সভাপতি card p-8 padding */
}

/* Ensure committee member images don't shrink */
#committee2025Container img,
#mobileCommittee2025Container img {
    flex-shrink: 0;
}

/* Reduce spacing between position and name - MINIMAL */
#committee2025Container .font-bold,
#mobileCommittee2025Container .font-bold {
    margin-bottom: 0 !important;
    /* No spacing between position and name */
}

/* Ensure extra text (like additional roles) has consistent spacing */
#committee2025Container .text-xs,
#mobileCommittee2025Container .text-xs {
    min-height: 1.25rem;
}


/* Committee Card Fixed Heights */
#committee2025Container .flex-shrink-0>div,
#mobileCommittee2025Container .flex-shrink-0>div {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem !important;
    /* Match সভাপতি card p-8 padding */
}

/* Ensure committee member images don't shrink */
#committee2025Container img,
#mobileCommittee2025Container img {
    flex-shrink: 0;
}

/* Reduce spacing between position and name */
#committee2025Container .font-bold,
#mobileCommittee2025Container .font-bold {
    margin-bottom: 0.25rem !important;
    /* Reduced spacing */
}

/* Ensure extra text (like additional roles) has consistent spacing */
#committee2025Container .text-xs,
#mobileCommittee2025Container .text-xs {
    min-height: 1.25rem;
}

/* Committee Card Fixed Heights */
#committee2025Container .flex-shrink-0>div,
#mobileCommittee2025Container .flex-shrink-0>div {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensure committee member images don't shrink */
#committee2025Container img,
#mobileCommittee2025Container img {
    flex-shrink: 0;
}

/* Ensure extra text (like additional roles) has consistent spacing */
#committee2025Container .text-xs,
#mobileCommittee2025Container .text-xs {
    min-height: 1.25rem;
}

/* Founding Members Infinite Scroll Animation */
.founding-scroll-container {
    padding: 20px 0;
}

.founding-scroll-track {
    animation: founding-scroll 7s linear infinite;
}

.founding-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes founding-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.founding-member-card {
    transition: transform 0.3s ease;
}

.founding-member-card:hover {
    transform: scale(1.05);
}

/* Founding Members - Manual Scroll Support */
.founding-scroll-container {
    cursor: grab;
    user-select: none;
}

.founding-scroll-container:active {
    cursor: grabbing;
}

.founding-scroll-track.dragging {
    animation-play-state: paused;
    cursor: grabbing;
}

/* Mobile: Enable horizontal scrolling */
@media (max-width: 768px) {
    .founding-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .founding-scroll-container::-webkit-scrollbar {
        height: 6px;
    }

    .founding-scroll-container::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 3px;
    }

    .founding-scroll-container::-webkit-scrollbar-thumb {
        background: #10b981;
        border-radius: 3px;
    }

    .founding-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #059669;
    }
}