@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1C2A48;
    --secondary-color: #DD282E;
    --text-color: #333333;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}


.section-padding {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 0;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 30px;
    padding: 8px 24px;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Navbar */
.nav-logo {
    height: 60px;
    width: auto;
}

.profile-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.banner-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-pagination .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.7;
    width: 12px;
    height: 12px;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

/* Cards (Events, Posts) */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Team / Advisory */
.team-img {
    height: 120px;
    width: 120px;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    margin: 0 auto 15px auto;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Swiper Paddings */
.swiper {
    padding-bottom: 50px !important;
}

/* Gallery */
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

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

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-logo {
    height: 80px;
    background: white;
    padding: 5px;
    border-radius: 8px;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
}

/* About Page */

.page-header {
    height: 350px;
    position: relative;
    background-color: var(--primary-color);
}

.about-header-bg {
    background-image: url('img/about_page.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 42, 72, 0.8);
    z-index: 0;
}

/* Speech Cards */
.speech-card {
    background-color: var(--white);
    border-radius: 12px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.speech-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.speech-content p {
    font-style: italic;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* History Images */
.history-img-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

/* Events Page */

.events-header-bg {
    background-image: url('img/club_events.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

/* Committee Page */

.dynamic-header {
    height: 350px;
    position: relative;
    background-color: var(--primary-color);
}

.header-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Committee Images */
.committee-member-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-light);
    margin: 0 auto 15px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease;
}

.team-card:hover .committee-member-img {
    border-color: var(--secondary-color);
}


.executive-img {
    width: 110px;
    height: 110px;
}


.team-card .card-body {
    display: flex;
    flex-direction: column;
}

/* Announcement Page */

.featured-event-card {
    border-radius: 15px;
    background-color: var(--white);
}

.featured-event-card img {
    min-height: 400px;
}

/* Countdown Timer */
.countdown-box {
    background-color: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-align: center;
    padding: 10px 15px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

@media (max-width: 576px) {
    .countdown-box {
        min-width: 65px;
        padding: 8px 10px;
    }

    .countdown-number {
        font-size: 1.4rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }
}

/* Past Events */
.past-event-card img {
    filter: grayscale(80%);
    transition: filter 0.3s ease;
}

.past-event-card:hover img {
    filter: grayscale(0%);
}

.ended-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(221, 40, 46, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 2;
}


/* Gallery Page */

.gallery-img-container {
    cursor: pointer;
    background-color: var(--primary-color);
}

.gallery-grid-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-img-container:hover .gallery-grid-img {
    transform: scale(1.08);
    opacity: 0.85;
}

@media (max-width: 768px) {
    .gallery-grid-img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .gallery-grid-img {
        height: 150px;
    }
}

/* Lightbox */
#galleryModal .modal-backdrop.show {
    opacity: 0.9;
    background-color: var(--primary-color);
}

/* Contact Page */

.border-primary {
    border-color: var(--primary-color) !important;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-detail-item:hover .contact-icon-box {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

/* Form Input */
.custom-input {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.custom-input:focus {
    background-color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(221, 40, 46, 0.15);
}

.custom-input::placeholder {
    color: #adb5bd;
}

/* Login/Signup */

.auth-card {
    border-radius: 1rem;
}

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

.cursor-pointer {
    cursor: pointer;
}

.hover-primary {
    transition: color 0.3s ease;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}


.input-group .custom-input:focus {
    z-index: 3;
}

.input-group-text {
    border-color: #e9ecef;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .custom-input {
    border-color: var(--secondary-color);
}

.input-group:focus-within .input-group-text {
    color: var(--secondary-color) !important;
}

/* OTP & Password Reset */

.otp-input {
    font-size: 2rem !important;
    text-align: center;
    letter-spacing: 0.8rem;
    padding: 15px !important;
    font-weight: bold;
    color: var(--primary-color);
}

.otp-input::placeholder {
    letter-spacing: 0.8rem;
    color: #ced4da;
    font-weight: normal;
}



.custom-tabs-container {
    background-color: #f1f3f5;
    border-radius: 50px;
    padding: 6px;
    display: flex;
    justify-content: space-between;
}

.custom-tabs-container .nav-pills {
    display: flex;
    flex-wrap: nowrap;
}

.custom-tabs-container .nav-item {
    flex: 1;
    text-align: center;
}

.custom-tabs-container .nav-link {
    border-radius: 40px;
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.custom-tabs-container .nav-link:hover {
    color: var(--secondary-color);
}

.custom-tabs-container .nav-link.active {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(221, 40, 46, 0.3);
}


@media (max-width: 576px) {
    .custom-tabs-container {
        border-radius: 12px;
        padding: 5px;
    }

    .custom-tabs-container .nav-pills {
        flex-direction: column;
    }

    .custom-tabs-container .nav-link {
        border-radius: 8px;
        margin-bottom: 2px;
    }
}

/* Profile Page */


.profile-overview-card .bg-primary {
    background-color: var(--primary-color) !important;
}

.profile-avatar-container {
    width: 140px;
    height: 140px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid var(--white);
}

.contact-icon-box-small {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.input-group-text i {
    width: 20px;
    text-align: center;
}


/* Admin Dashboard */

.admin-body {
    overflow-x: hidden;
}

#admin-wrapper {
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    height: 40px;
}

/* Sidebar Navigation */
.admin-nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-nav-link:hover {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-nav-link.active {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.admin-main {
    background-color: var(--bg-light);
    transition: all 0.3s ease;
    min-width: 0;
}

.admin-img-preview {
    height: 150px;
    object-fit: cover;
}

.admin-avatar {
    width: 80px;
    height: 80px;
}

.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
}


.admin-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: opacity 0.3s;
}

.admin-gallery-item:hover img {
    opacity: 0.7;
}

.delete-overlay-btn {
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-gallery-item:hover .delete-overlay-btn {
    opacity: 1;
}


@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        height: 100vh;
        left: -260px;
    }

    .admin-sidebar.show {
        left: 0;
    }

    .admin-nav-link {
        padding: 10px 15px !important;
    }
}

/* Admin Table */

.admin-table-avatar {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border: 1px solid #dee2e6;
}