/* Global styles */
* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #222;
}

/* Adaptive typography for headings */
h1 {
    font-size: 2.5rem; /* Desktop */
}
h2 {
    font-size: 2.2rem; /* Desktop */
}
h4 {
    font-size: 1.8rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.2rem; /* Tablet */
    }
    h2 {
        font-size: 2rem; /* Tablet */
    }
    h4 {
        font-size: 1.6rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.75rem; /* Mobile */
    }
    h2 {
        font-size: 1.5rem; /* Mobile */
    }
    h4 {
        font-size: 1.25rem; /* Mobile */
    }
    .navbar-brand span {
        font-size: 1.25rem !important; /* Mobile logo text */
    }
}

/* Navbar */
.navbar-brand {
    color: #333 !important;
}

.navbar-brand:hover {
    color: #007bff !important;
}

.nav-link {
    color: #555 !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff !important;
}

.offcanvas-header {
    background-color: #f8f9fa;
}

.offcanvas-title {
    color: #333;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

.btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #333;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.btn-light:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    color: #222;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: auto !important;
    min-height: 00px;
    background-color: #333;
    overflow: hidden;
    padding-top: 120px !important; /* Offset for fixed header */
    padding-bottom: 50px;

    h1{
        color: #fff !important;
    }
}

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

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

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* News Cards */
.news-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 0.75rem;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.news-card .card-img-top {
    height: 400px; /* Fixed height for all card images */
    object-fit: cover;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.news-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card .card-text {
    font-size: 0.95rem;
    color: #666;
    flex-grow: 1;
}

.news-card small {
    color: #888 !important;
}

/* Carousel */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 15px;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

/* Categories */
.category-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.category-card i {
    color: #007bff; /* Primary color for icons */
}

.category-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Featured Article */
.featured-article-section {
    background-color: #f8f9fa;
}

.featured-image-container {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image-container .dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
}

/* Team Section */
.team-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid #007bff;
}

.team-section .card {
    border: none;
    border-radius: 0.75rem;
}

/* About Us */
.about-us-section img {
    border-radius: 0.75rem;
}

/* Footer */
footer {
    background-color: #222 !important;
    color: #f8f9fa;
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff;
}

.badge {
    background-color: #495057 !important;
}

/* Modal */
.modal-content {
    border-radius: 0.75rem;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    color: #222;
}

.modal-body img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.modal-body p {
    color: #333;
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 200px); /* Adjust based on header/footer size */
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 250px;
        background-color: #fff;
        transition: right 0.3s ease-in-out;
        z-index: 1050;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    .navbar-collapse.show {
        right: 0;
    }
    .navbar-toggler {
        display: block;
    }
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1rem;
    }
    .navbar-nav .nav-item {
        width: 100%;
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .navbar-toggler {
        display: none;
    }
    .offcanvas {
        visibility: hidden;
    }
    .navbar-nav {
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 400px;
        padding-top: 70px;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .btn-lg {
        padding: 0.75rem 2rem !important;
        font-size: 1rem !important;
    }

    .news-card .card-img-top {
        height: 180px;
    }

    .modal-body img {
        max-height: 250px;
    }
}.termsCaveBox {
    margin-top: 40px; /* Top margin for the main content box */
    margin-left: 20px; /* Left margin for the main content box */
    margin-right: 20px; /* Right margin for the main content box */
    /* You might want to add max-width and margin: 0 auto; for better readability on large screens */
    /* max-width: 960px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
}

.termsCaveBox h1 {
    font-size: 1.8rem; /* Main heading font size, not too large */
    margin-top: 2rem; /* Space above the heading */
    margin-bottom: 1rem; /* Space below the heading */
    line-height: 1.2; /* Line height for better readability */
    font-weight: 700; /* Bold font weight */
    color: #333; /* Dark grey color for headings */
}

.termsCaveBox h2 {
    font-size: 1.6rem; /* Secondary heading font size */
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
    line-height: 1.3;
    font-weight: 600;
    color: #333;
}

.termsCaveBox h3 {
    font-size: 1.4rem; /* Tertiary heading font size */
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 500;
    color: #333;
}

.termsCaveBox h4 {
    font-size: 1.2rem; /* Quaternary heading font size */
    margin-top: 1.4rem;
    margin-bottom: 0.7rem;
    line-height: 1.5;
    font-weight: 500;
    color: #333;
}

.termsCaveBox h5 {
    font-size: 1.1rem; /* Quinary heading font size, slightly larger than body text */
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
    font-weight: 400; /* Standard font weight */
    color: #333;
}

.termsCaveBox p {
    font-size: 1rem; /* Base paragraph font size */
    margin-bottom: 1rem; /* Space between paragraphs */
    line-height: 1.6; /* Optimal line height for text readability */
    color: #444; /* Slightly lighter than headings for body text */
}

.termsCaveBox ul {
    margin-top: 1rem; /* Space above the unordered list */
    margin-bottom: 1rem; /* Space below the unordered list */
    padding-left: 25px; /* Indentation for bullet points */
    list-style-type: disc; /* Default bullet style */
    color: #444;
}

.termsCaveBox li {
    font-size: 1rem; /* List item font size */
    margin-bottom: 0.5rem; /* Space between list items */
    line-height: 1.6; /* Line height for list item readability */
    color: #444;
}

footer .navbar-brand,
.bg-primary h2{
    color: #fff !important;
}

.rta{
    display: flex;
    flex-direction: column;
}

.carousel-item{
    padding-right: 30px;
    padding-left: 30px;
}