/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --font-primary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

.section-title {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: #777;
    margin-bottom: 30px;
}

.btn {
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

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

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.preloader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
    z-index: 1;
}

.spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid transparent;
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    box-sizing: border-box;
}

/* Orbit effect for spinner */
.spinner::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}


/* Top Bar */
.top-bar {
    font-size: 14px;
    padding: 8px 0;
}

.top-bar .contact-info span {
    margin-right: 15px;
}

.top-bar .social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
}

/* Navigation */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-color);
    padding: 8px 15px;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-weight: 500;
    padding: 8px 20px;
}
/* ===== HERO CAROUSEL - COMPLETE STYLE ===== */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* ----- Carousel Base Styles ----- */
#mainCarousel {
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
  border-radius: 0.5rem;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  min-height: 500px;
  transition: transform 0.6s ease-in-out;
}

/* ----- Image Treatment ----- */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ----- Dark Overlay for Text Readability ----- */
.hero-carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

/* ----- Caption Styles ----- */
.carousel-caption {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 2.5rem;
  text-align: center;
  z-index: 2;
  color: white;
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.carousel-caption p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ----- Buttons ----- */
.carousel-caption .btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.carousel-caption .btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
}

.carousel-caption .btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ----- Navigation Controls ----- */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.9;
  z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-size: 100% 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ----- Indicators ----- */
.carousel-indicators {
  z-index: 3;
  margin-bottom: 1.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 8px;
  border: 2px solid white;
  background-color: transparent;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: white;
  opacity: 1;
  transform: scale(1.1);
}


/* About Section */
.about-section {
    padding: 80px 0;
}

.about-section img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features-list {
    margin: 30px 0;
}

.feature-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-item i {
    margin-right: 10px;
    font-size: 18px;
}

/* Branches Section */
.branches-section {
    padding: 80px 0;
    background-color: #fff;
}

.branch-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.branch-card .card-body {
    padding: 25px;
}

.branch-card .card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.branch-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.branch-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.branch-features i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--light-color);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-role {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.rating {
    color: var(--warning-color);
}

/* News Section */
.news-section {
    padding: 80px 0;
}

.news-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    z-index: 1;
}

.news-date .day {
    font-size: 24px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.news-date .month {
    font-size: 14px;
    display: block;
    line-height: 1;
}

.news-card .card-body {
    padding: 25px;
}

.news-card .card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Call to Action */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/about/about.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.cta-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 80px 0 30px;
}

.footer h5 {
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    font-weight: 700;
}

.footer h5:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 15px;
    color: var(--secondary-color);
    margin-top: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-5px);
}

.newsletter-form .input-group {
    max-width: 400px;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 30px 0 0 30px;
    border: none;
}

.newsletter-form .btn {
    border-radius: 0 30px 30px 0;
    padding: 0 25px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Animation */
[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

[data-aos="zoom-out"] {
    transform: scale(1.2);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-out"].aos-animate {
    transform: scale(1);
    opacity: 1;
}
/* Media Queries for Responsive Design */
@media (max-width: 1199.98px) {
    /* Adjustments for large tablets */
    .hero-section .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    /* Adjustments for tablets */
    .navbar-collapse {
        background: white;
        padding: 20px;
        margin-top: 15px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .hero-section .carousel-caption {
        bottom: 10%;
        padding: 1.5rem;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }
        .logo-container {
        width: 180px;
        height: 180px;
    }
    .preloader-logo {
        width: 90px;
    }
    .spinner {
        border-width: 4px;
    }
}

@media (max-width: 767.98px) {
    /* Adjustments for small tablets and large phones */
    .navbar-brand img {
        height: 45px;
    }
    
    .hero-section .carousel-item {
        min-height: 400px;
    }
    
    .hero-section .carousel-caption {
        bottom: 5%;
        width: 95%;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .carousel-caption .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .about-section img {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-title:after {
        width: 60px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .cta-section {
        padding: 70px 0;
        background-attachment: scroll;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer .col-md-6, 
    .footer .col-lg-3, 
    .footer .col-lg-4 {
        margin-bottom: 30px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
        .logo-container {
        width: 150px;
        height: 150px;
    }
    .preloader-logo {
        width: 80px;
    }
    .spinner {
        border-width: 3px;
    }
    .spinner::before {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 575.98px) {
    /* Adjustments for mobile phones */
    body {
        font-size: 14px;
    }
        .logo-container {
        width: 120px;
        height: 120px;
    }
    .preloader-logo {
        width: 70px;
    }
    .spinner {
        border-width: 2px;
    }
    .spinner::before {
        width: 12px;
        height: 12px;
        top: -3px;
    }
    .navbar-brand img {
        height: 40px;
    }
    
    .hero-section .carousel-item {
        min-height: 350px;
    }
    
    .hero-section .carousel-caption {
        padding: 1rem;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-section .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        display: none; /* Hide paragraph on smallest devices */
    }
    
    .section-title {
        font-size: 1.4rem;
        padding-bottom: 10px;
    }
    
    .section-title:after {
        height: 2px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .feature-box h3 {
        font-size: 18px;
    }
    
    .testimonial-img {
        width: 80px;
        height: 80px;
    }
    
    .news-date {
        top: 10px;
        right: 10px;
        padding: 8px;
    }
    
    .news-date .day {
        font-size: 20px;
    }
    
    .news-date .month {
        font-size: 12px;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .footer h5 {
        font-size: 1.2rem;
    }
    
    .contact-info li span {
        font-size: 13px;
    }
    
    .newsletter-form .form-control {
        height: 45px;
    }
}

/* Prevent horizontal scrolling on all devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure images don't exceed container width */
img {
    max-width: 100%;
    height: auto;
}

/* Adjust carousel indicators for small devices */
@media (max-width: 767.98px) {
    .carousel-indicators {
        margin-bottom: 0.5rem;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }
}

/* Fix dropdown menu on mobile */
@media (max-width: 991.98px) {
    .dropdown-menu {
        box-shadow: none;
        border: 1px solid rgba(0,0,0,0.1);
        margin-top: 5px;
    }
    
    .dropdown-item {
        padding: 8px 15px;
    }
}

/* Adjust modal for small devices */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-6 {
        width: 100%;
        margin-bottom: 15px;
    }
}