/* ---------------- Navbar ---------------- */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar.navbar-expand-lg.bg-body-tertiary {
    background-color: #f8f9fa;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #dc3545;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #dc3545;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ---------------- All Sections But Hero ---------------- */
section:not(.hero-section):not(.terms-section) {
    min-height: 100vh;
}

/* ---------------- Hero Section ---------------- */
.hero-section {
    position: relative;
    height: 700px;
    overflow: hidden;
    padding: 20px;
}

.hero-video,
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-fluid.mb-4 {
    width: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.video-overlay {
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.hero-video {
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: #000000;
    padding-top: 80px;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

/* ---------------- About Section ---------------- */
.about-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 80px;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.about-section {
    background-image: url("../images/about-us.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    position: relative;
}

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

.about-section .container {
    position: relative;
    z-index: 2;
}


.about-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #f8f9fa;
}

.about-section .card-title {
    color: #c00;
    font-weight: bold;
}

.about-section p {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

.about-section .card-body,
.about-section .card-body .card-text {
    color: #000 !important;
}


.about-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ---------------- Membership Section ---------------- */
.membership-section .row {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.hero-section,
.about-section,
#membership {
    padding: 20px 25px;
}

#membership {
    background-color: #020381;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
}

.membership-text {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

#membership .card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#membership .card-footer {
    background-color: transparent;
}

#membership .card-title,
#membership .card-text {
    color: #000;
}

/* ---------------- Contact Section ---------------- */
#contact {
    padding: 20px 60px 80px;
    background-color: #e0f7fa;
    height: auto;
    min-height: 100vh;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 20px 0;
}

@media (max-width: 768px) {
    #contact .contact-card {
        height: auto !important;
        width: 100%;
    }

    #contact .card-body {
        padding: 1.5rem !important;
    }
}

/* ---------------- Footer ---------------- */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    margin-top: auto;
}

/* ---------------- Terms Section ---------------- */
.terms-section {
    padding: 20px 25px;
    background-color: #ffffff;
}

#terms-container {
    max-width: 800px;
    margin: 0 auto;
    color: #000000;
    color: #000000;
}

/* ---------------- Equipment Section ---------------- */
#equipment {
    padding: 35px 15px;
    width: 100%;
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.equipment-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
}

#equipment-body {
    color: #020381;
}

/* ---------------- Success Section ---------------- */
.success-section {
    padding-bottom: 40px;
}

main {
    flex: 1;
}

footer {
    background-color: #1d1f21;
}

/* ---------------- Page Wrapper ---------------- */

.page-wrapper {
    min-height: 500px;
    flex-direction: column;
}

.success-section {
    flex-grow: 1;
    text-align: center;
    padding: 5px 5px;
}