/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

/* Global Styles */
:root {
    --primary-color: #0056b3; /* Darker, more professional blue */
    --secondary-color: #f0f8ff; /* AliceBlue - light and airy */
    --accent-color: #ffc107; /* Amber - vibrant and inviting */
    --dark-color: #2c3e50; /* Midnight Blue - for text */
    --light-color: #f8f9fa; /* Standard light grey */
    --white-color: #ffffff;
    --black-color: #000000;
    --gray-color: #7f8c8d; /* Asbestos - for secondary text */
    --success-color: #2ecc71; /* Emerald */
    --danger-color: #e74c3c; /* Alizarin */
    --font-primary: 'Be Vietnam Pro', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.7;
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }


a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}
.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.section-header.text-start .section-title::after,
.about-section .section-title::after { /* For left-aligned titles */
    left: 0;
    transform: translateX(0);
}


.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}


.btn {
    padding: 12px 30px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #00418a; /* Darken primary */
    border-color: #00418a;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.2);
}

.btn-secondary { /* Using accent for secondary CTA */
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: #e0a800; /* Darken accent */
    border-color: #e0a800;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.preloader .spinner-border {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 0.6rem 0;
}
.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-speed) ease;
}
.top-bar a:hover {
    color: var(--white-color);
}
.top-bar .social-links a {
    margin-left: 12px;
    font-size: 1rem;
}
.top-bar .social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Header & Navbar */
header {
    background-color: var(--white-color);
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.08); */ /* already has shadow-sm */
}
.navbar {
    padding: 1rem 0;
}
.logo {
    height: 55px; /* Increased size */
    transition: transform var(--transition-speed) ease;
}
.logo:hover {
    transform: scale(1.03);
}
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    bottom: 0.5rem; /* Adjusted position */
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 2rem); /* Adjusted width */
}
.navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 86, 179, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}
.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding-left: 1.75rem;
}
.dropdown-item:hover::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
}
.search-box .form-control {
    border-radius: 20px 0 0 20px;
    font-size: 0.9rem;
    border-right: none;
}
.search-box .btn-search {
    background: var(--primary-color);
    border: none;
    color: var(--white-color);
    border-radius: 0 20px 20px 0;
    padding: 0.375rem 0.85rem;
}
.search-box .btn-search:hover {
    background: #00418a;
}

/* Main Slider */
.main-slider .carousel-item {
    height: 85vh;
    min-height: 550px;
    position: relative;
}
.main-slider .carousel-item::after { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}
.main-slider .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.main-slider .carousel-caption {
    bottom: 25%;
    left: 10%;
    right: 10%;
    text-align: left;
    z-index: 10; /* Above overlay */
}
.main-slider .carousel-caption h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.main-slider .carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--white-color);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    max-width: 700px;
}
.main-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.5);
    border: none;
}
.main-slider .carousel-indicators button.active {
    background-color: var(--accent-color);
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 86, 179, 0.5); /* Primary color with transparency */
    border-radius: 50%;
    padding: 1.5rem; /* Make icons larger */
    width: 2rem;
    height: 2rem;
    background-size: 50% 50%;
}
.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    background-color: var(--primary-color);
}


/* Announcement Bar */
.announcement-bar {
    position: relative;
    z-index: 10; /* Above slider controls slightly */
}
.announcement-label {
    font-weight: 600;
    letter-spacing: 0.5px;
}
.announcement-content marquee a {
    transition: color var(--transition-speed) ease;
}
.announcement-content marquee a:hover {
    color: var(--accent-color) !important;
}

/* About Section */
.about-section {
    position: relative;
    overflow: hidden;
}
.about-section .lead {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}
.achievement-item {
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.achievement-item h3 {
    font-size: 1.8rem; /* Smaller counter for this layout */
    color: var(--primary-color);
    margin-bottom: 0;
}
.achievement-item p {
    font-size: 0.9rem;
    color: var(--gray-color);
}
.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.about-image-wrapper img {
    transition: transform 0.5s ease;
}
.about-image-wrapper:hover img {
    transform: scale(1.05);
}
.experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--accent-color);
    color: var(--dark-color); /* Better contrast on accent */
    border-radius: var(--border-radius);
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: pulseBadge 2s infinite;
}
.experience-badge span {
    font-size: 2rem;
    line-height: 1;
    display: block;
}
.experience-badge small {
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
}
@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: var(--secondary-color); /* Use defined secondary color */
}
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    background-color: var(--accent-color);
    transform: rotateY(180deg);
}
.feature-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card .card-text {
    font-size: 0.95rem;
    color: var(--gray-color);
}
.feature-content h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-content p {
    color: var(--gray-color);
    line-height: 1.6;
}
strong, b {
    font-weight: 600;
    margin: 0 2px;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* News Section */
.news-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    position: relative;
    background-color: var(--white-color);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}
.news-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .card-img-top {
    transform: scale(1.05);
}
.news-badge {
    position: absolute;
    top: 15px;
    left: 15px; /* Changed from right to left */
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
    text-transform: uppercase;
}
.news-badge.hot {
    background-color: var(--danger-color);
    color: var(--white-color);
}
.news-meta {
    font-size: 0.8rem;
    color: var(--gray-color);
}
.news-meta i {
    color: var(--primary-color);
}
.news-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color var(--transition-speed) ease;
}
.news-card:hover .card-title {
    color: var(--primary-color);
}
.news-card .card-text {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    flex-grow: 1; /* Ensure text takes up space before button */
}
.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block; /* For hover effect */
}
.read-more i {
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}
.read-more:hover {
    color: var(--accent-color);
}
.read-more:hover i {
    transform: translateX(5px);
}

/* Admission Teaser Section */
.admission-teaser-section {
    background-color: var(--secondary-color); /* A light, inviting background */
}
.admission-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--dark-color);
}
.admission-list i {
    font-size: 1.1rem; /* Kept original size, color from text-primary */
}
.admission-teaser-section img {
    border: 5px solid var(--white-color); /* Add a border to image */
}

/* Gallery Section */
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}
.gallery-item img {
    transition: transform 0.4s ease;
    width: 100%;
    aspect-ratio: 4/3; /* Common aspect ratio for gallery images */
    object-fit: cover;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 86, 179, 0.85) 0%, rgba(0, 86, 179, 0.2) 100%); /* Primary color gradient */
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to bottom */
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    padding: 20px;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h5 {
    font-size: 1.1rem;
    color: var(--white-color);
    margin-bottom: 5px;
    transform: translateY(15px);
    transition: transform var(--transition-speed) ease 0.1s;
}
.gallery-overlay .gallery-icon {
    color: var(--white-color);
    font-size: 1.8rem;
    transform: translateY(15px);
    transition: transform var(--transition-speed) ease 0.2s, color var(--transition-speed) ease;
}
.gallery-item:hover .gallery-overlay h5,
.gallery-item:hover .gallery-overlay .gallery-icon {
    transform: translateY(0);
}
.gallery-overlay .gallery-icon:hover {
    color: var(--accent-color);
}


/* Testimonial Section */
.testimonial-section {
    background-color: var(--light-color); /* Standard light grey */
}
.testimonial-item {
    padding: 30px 20px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.testimonial-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid var(--primary-color); /* Primary color border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.testimonial-content p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--gray-color);
    position: relative;
    padding: 0 10px; /* Space for quotes */
}
.testimonial-content p::before {
    content: '“'; /* Opening quote */
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.8;
    position: absolute;
    left: -15px;
    top: -10px;
}
.testimonial-content p::after {
    content: '”'; /* Closing quote */
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.8;
    position: absolute;
    right: -15px;
    bottom: -25px;
}
.testimonial-content h5 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}
.testimonial-content span {
    font-size: 0.9rem;
    color: var(--gray-color);
}
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
    background-color: var(--accent-color);
    opacity: 1;
}
#testimonialCarousel .carousel-control-prev {
    left: -25px; /* Adjusted position */
}
#testimonialCarousel .carousel-control-next {
    right: -25px; /* Adjusted position */
}
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* Counter Section */
.counter-section {
    background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 65, 138, 0.9)), url('../images/counter-bg.jpg') no-repeat center center; /* Add a subtle background image if available */
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
}
.counter-item i {
    color: var(--accent-color); /* Accent color for icons */
    opacity: 0.9;
}
.counter-item h3 {
    font-size: 3rem; /* Keep large font */
    color: var(--white-color);
    font-weight: 800;
}
.counter-item p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--secondary-color);
}
.newsletter-form .form-control {
    height: 60px;
    border-radius: 50px 0 0 50px;
    border: 1px solid #ced4da;
    border-right: none;
    padding-left: 25px;
    font-size: 1rem;
}
.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}
.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    height: 60px;
    padding-left: 30px;
    padding-right: 30px;
}
#newsletterMessage {
    font-weight: 500;
}
#newsletterMessage.success {
    color: var(--success-color);
}
#newsletterMessage.error {
    color: var(--danger-color);
}


/* Footer */
.footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.7);
}
.footer-logo {
    height: 55px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make logo white if it's dark */
}
.footer-widget h5.footer-title {
    font-size: 1.1rem;
    color: var(--white-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.footer-widget h5.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a, .footer-contact li {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}
.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}
.footer-contact i {
    color: var(--accent-color);
    margin-top: 4px;
    width: 20px; /* Ensure consistent spacing */
}
.footer-map iframe {
    border: none;
    border-radius: var(--border-radius);
}
.footer-social-links 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-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.footer-social-links a:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-3px) scale(1.1);
}
.footer hr {
    border-color: rgba(255,255,255,0.15);
}
.footer .small {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.footer .small a {
    color: rgba(255,255,255,0.7);
}
.footer .small a:hover {
    color: var(--accent-color);
}


/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50px;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 999;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-5px);
}

/* Sub-page specific: Page Header / Banner */
.page-header {
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 65, 138, 0.8)), url('../images/page-header-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    color: var(--white-color);
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
    color: var(--white-color);
    font-weight: 800;
    margin-bottom: 10px;
}
.breadcrumb-item {
    font-size: 0.9rem;
}
.breadcrumb-item a {
    color: var(--accent-color);
}
.breadcrumb-item a:hover {
    color: var(--white-color);
}
.breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .main-slider .carousel-caption h1 {
        font-size: 2.8rem;
    }
    .main-slider .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
        background-color: var(--white-color);
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .navbar-nav .nav-link {
        padding: 0.6rem 0.5rem;
    }
    .navbar-nav .nav-link::after {
        left: 0.5rem;
        bottom: 0.3rem;
        width: calc(100% - 1rem);
    }
    .navbar-nav .dropdown-menu {
        box-shadow: none;
        border-top: 1px solid #eee;
    }

    .main-slider .carousel-item {
        height: 75vh;
        min-height: 500px;
    }
    .main-slider .carousel-caption {
        bottom: 20%;
        text-align: center; /* Center on smaller screens */
    }
     .main-slider .carousel-caption h1 {
        font-size: 2.5rem;
    }
    .main-slider .carousel-caption p {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    #testimonialCarousel .carousel-control-prev {
        left: 5px;
    }
    #testimonialCarousel .carousel-control-next {
        right: 5px;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    body {
        line-height: 1.6;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    .section-title { font-size: 2rem; }

    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .top-bar .date-time {
        margin-bottom: 0.5rem;
    }
    .top-bar-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .top-bar-links a { margin-bottom: 0.3rem; }
    .top-bar .social-links { margin-top: 0.5rem; }
    
    .main-slider .carousel-item {
        height: 65vh;
        min-height: 450px;
    }
    .main-slider .carousel-caption h1 {
        font-size: 2rem;
    }
    .main-slider .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .about-section .text-start .section-title::after,
    .section-header.text-start .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-section .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer { text-align: center; }
    .footer-widget h5.footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact li {
        justify-content: center;
        text-align: left; /* Keep text left aligned within centered li */
    }
    .footer-social-links {
        justify-content: center;
    }
    .footer .text-md-start, .footer .text-md-end {
        text-align: center !important;
    }
    .footer .text-md-end p.small { margin-top: 0.5rem; }

    .page-header { padding: 60px 0; }
    .page-header h1 { font-size: 2.2rem; }
    .navbar-nav {
        margin-top: 1rem;
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    .dropdown-menu {
        margin-left: 1rem;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 575.98px) {
    .main-slider .carousel-item {
        height: 55vh;
        min-height: 400px;
    }
    .main-slider .carousel-caption h1 {
        font-size: 1.6rem;
    }
    .main-slider .carousel-caption p {
        display: none; /* Hide paragraph on very small screens */
    }
    .main-slider .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    .announcement-label {
        display: none; /* Hide label, marquee takes full width */
    }
    .announcement-content {
        text-align: center;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }
    .newsletter-form .form-control {
        border-radius: 30px;
        margin-bottom: 10px;
        text-align: center;
        border-right: 1px solid #ced4da; /* Add back border */
    }
    .newsletter-form .btn {
        border-radius: 30px;
        width: 100%;
    }
    .counter-item h3 { font-size: 2.2rem; }
    .counter-item p { font-size: 0.85rem; }

    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        display: none; /* Hide controls on very small screens for more space */
    }
}