/* ========== Base Typography ========== */
body {
    font-family: 'Playfair Display', serif;
}

.title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
}

/* ========== Navbar Styles ========== */
.nav-item {
    font-size: 20px;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    position: relative;
    font-size: 20px;
    color: #000;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

/* Underline animation on hover and active */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background-color: #000;
    transition: width 0.3s ease;
}

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

/* ========== Hero Section ========== */
.hero-section {
    padding: 60px 0;
    background-color: white;
    width: 100%;
    height: 45xrem;
    /* Note: '45xrem' is likely a typo, should be '45rem' if intended */
}

.phrase h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.phrase,
.hero-paragraph {
    text-align: center;
}

.hero-text {
    padding-right: 20rem;
    font-family: 'Poppins', sans-serif;
}

.static {
    display: inline-block;
}

/* ========== Statistics Section ========== */
.stat-box-text {
    min-height: 120px;
    /* Ensures consistent card height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Animated typing cursor */
.dynamic::after {
    content: "|";
    animation: blink 1s step-start infinite;
    margin-left: 2px;
}

/* Animated word min-width for smooth transitions */
#altWord2 {
    display: inline-block;
    min-width: 9ch;
    /* Responsive fix for animated word span */
}

/* ========== Responsive Logo ========== */
.navbar-brand img {
    max-height: 60px;
    height: auto;
    width: auto;
}

/* Hide mobile break by default */
.mobile-break {
    display: none;
}

/* Fixed size for card images */
.card-img-fixed {
    width: 800px;
    height: 270px;
    object-fit: cover;
}

#backToTop {

    position: fixed;
    bottom: 100px;
    /* Increased to sit above WhatsApp button */
    right: 36px;
    display: none;
    z-index: 2000;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.35);
}

h2,
h3 {
    font-family: "Playfair Display", serif;
    font-size: 3.0rem;
}

.btn-outline-dark.text-dark:hover,
.btn-outline-dark.text-dark:focus {
    color: #212529 !important;
    /* Bootstrap's text-dark */
    background-color: #fff !important;
    border-color: #212529 !important;
}

.btn-outline-light.text-dark:hover,
.btn-outline-light.text-dark:focus {
    color: #212529 !important;
    /* Bootstrap's text-dark */
    background-color: #fff !important;
    border-color: #f8f9fa !important;
}

.join-now-btn {
    background-color: rgba(219, 240, 243, 0.5);
}

/* ========== Responsive Styles ========== */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-text {
        text-align: center;
        align-items: center !important;
    }

    .mobile-break {
        display: block;
        width: 100%;
        height: 0;
    }

    .about-us-section img {
        max-height: 120px !important;
    }

    .my-box {
        min-height: 200px !important;
        padding: 20px;
    }
}

@media (max-width: 991.98px) {
    .my-box {
        min-height: 260px !important;
    }
}

/* ========== Animations ========== */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ========== Hero Image Styles ========== */
.hero-photo img {
    max-width: 100%;
    height: auto;
    width: 500px;
    display: block;
}

/* ========== Feature Card Styles ========== */
.my-box {
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

/* ========== Hero Image Mask ========== */
.hero-image {
    width: 100%;
    height: auto;
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

/* ========== Additional Responsive Adjustments ========== */
@media screen and (max-width: 768px) {
    .hero-section .content {
        width: 100%;
        height: auto;
    }

    section .hero {
        padding: 0;
    }

    .phrase {
        font-size: 3rem;
    }

    .hero-paragraph {
        padding: 10px;
        font-size: 1.2rem;
    }

    .hero-photo img {
        width: 100%;
        height: auto;
    }

    .my-box {
        padding: 20px;
    }
}

/* ========== Floating WhatsApp Button ========== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 2.5rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: #fff;
    text-decoration: none;
}

/* ========== Skip Link Styles ========== */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    outline: 2px solid #25d366;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========== End of Styles ========== */