/* ==========================================================================
   HERO SLIDER STYLES - Enhanced with Professional Transitions
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, 
                transform 8s ease-out,
                visibility 0s linear 1.5s;
}

.slider-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, 
                transform 8s ease-out,
                visibility 0s linear 0s;
}

/* Slide-in from right effect for next slide */
.slider-item.slide-in-right {
    animation: slideInRight 1.5s ease-out;
}

/* Slide-out to left effect for previous slide */
.slider-item.slide-out-left {
    animation: slideOutLeft 1.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(1);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1.1);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0) scale(1.1);
        opacity: 1;
    }
    to {
        transform: translateX(-100%) scale(1);
        opacity: 0;
    }
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: flex-end; /* Align bottom */
    justify-content: flex-start; /* Align left */
    padding-left: 10%; /* Space from left edge */
    padding-bottom: 80px; /* Space from bottom edge, just above controls */
}

.slider-content {
    text-align: left;
    color: var(--color-white);
    max-width: 500px; /* Reduced width */
    background: rgba(0, 0, 0, 0.85); /* Darker overlay like sample */
    padding: 25px 30px; /* Reduced padding */
    border-radius: 4px; /* Slightly sharper corners */
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slider-item.active .slider-content {
    animation: contentFadeInUp 1s ease-out 0.3s forwards;
}

@keyframes contentFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-content h1 {
    font-size: 22px; /* Reduced for enhanced image focus */
    font-weight: 700;
    margin-bottom: 5px; /* Tighter spacing */
    text-shadow: none;
    color: #4CAF50; /* Green headline like sample, or keep Gold if preferred. Sample shows green. Let's use a nice green. */
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
}

.slider-item.active .slider-content h1 {
    animation: textSlideUp 0.8s ease-out 0.5s forwards;
}

.slider-content p {
    font-size: 14px; /* Reduced font size */
    margin-bottom: 15px; /* Reduced margin */
    font-weight: 400;
    text-shadow: none;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    border-bottom: 1px solid rgba(255,255,255,0.3); /* Add separator line hint */
    padding-bottom: 10px;
    display: block;
}

.slider-item.active .slider-content p {
    animation: textSlideUp 0.8s ease-out 0.7s forwards;
}

.slider-content .btn {
    opacity: 0;
    transform: translateY(20px);
    padding: 5px 15px; /* Significantly specific reduced size */
    font-size: 11px; /* Very small text */
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    min-width: auto; /* Ensure no minimum width forces it larger */
}

.slider-item.active .slider-content .btn {
    animation: textSlideUp 0.8s ease-out 0.9s forwards;
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.slider-dot.active {
    background-color: var(--color-secondary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.6);
}

.slider-dot.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ==========================================================================
   CTA CARDS STYLES
   ========================================================================== */
.cta-cards {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: var(--spacing-xl);
}

.cta-card {
    background: linear-gradient(135deg, var(--color-white) 0%, #f0f4f8 100%);
    border-radius: 10px;
    padding: 15px; /* Reduced from spacing-md (24px) */
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    border: 1px solid rgba(12, 60, 120, 0.1);
    height: 100%;
}

.cta-card:hover {
    transform: translateY(-5px); /* Reduced hover movement */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-icon {
    width: 50px; /* Reduced from 70px */
    height: 50px; /* Reduced from 70px */
    margin: 0 auto 10px; /* Reduced margin */
    background: linear-gradient(135deg, var(--color-primary), #0a2f5e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 22px; /* Reduced from 30px */
    transition: var(--transition-base);
}

.cta-card:hover .cta-icon {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    transform: rotate(360deg);
}

.cta-card h3 {
    font-size: 16px; /* Reduced from 20px */
    color: var(--color-primary);
    margin-bottom: 5px; /* Reduced margin */
    font-weight: 600;
}

.cta-card p {
    font-size: 12px; /* Reduced from 14px */
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.4;
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */
.about-section,
.principal-section,
.why-choose-section,
.stats-section,
.gallery-section,
.news-section {
    padding: var(--spacing-xl) 0;
}

.about-section {
    background-color: var(--color-white);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition-base);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.about-content p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   PRINCIPAL MESSAGE STYLES
   ========================================================================== */
.principal-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.principal-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: var(--spacing-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.principal-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
    border: 5px solid var(--color-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.principal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-quote {
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    position: relative;
    padding: var(--spacing-md);
    background-color: rgba(12, 60, 120, 0.05);
    border-left: 4px solid var(--color-secondary);
    border-radius: 5px;
}

.principal-quote::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: var(--color-secondary);
    opacity: 0.3;
}

.principal-name {
    font-weight: 600;
    color: var(--color-primary);
    margin-top: var(--spacing-sm);
    text-align: center;
}

/* ==========================================================================
   WHY CHOOSE US STYLES
   ========================================================================== */
.why-choose-section {
    background-color: var(--color-white);
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid rgba(12, 60, 120, 0.1);
    margin-bottom: var(--spacing-md);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 26px;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: var(--color-text);
    font-size: 14px;
    margin-bottom: 0;
}

/* ==========================================================================
   STATS COUNTER STYLES
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a2f5e 100%);
    color: var(--color-white);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
}

.stat-icon {
    font-size: 48px;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ==========================================================================
   GALLERY STYLES
   ========================================================================== */
.gallery-section {
    background-color: var(--color-background);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 60, 120, 0.9) 0%, rgba(230, 57, 70, 0.9) 100%);
    opacity: 0;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--color-white);
    font-size: 36px;
}

/* ==========================================================================
   NEWS CARDS STYLES
   ========================================================================== */
.news-section {
    background-color: var(--color-white);
}

.news-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    height: auto !important;
    margin-bottom: var(--spacing-md);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: var(--spacing-md);
}

.news-date {
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content h3 {
    color: var(--color-primary);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-content p {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.read-more:hover {
    color: var(--color-secondary);
    gap: 10px;
}

/* ==========================================================================
   BREADCRUMB STYLES
   ========================================================================== */
.page-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a2f5e 100%);
    padding: 60px 0;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--color-white);
}

.breadcrumb-item.active {
    color: var(--color-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }
    
    .slider-content h1 {
        font-size: 28px;
    }
    
    .slider-content p {
        font-size: 16px;
    }
    
    /* Hide slider arrows on mobile, use swipe instead */
    .slider-arrow {
        display: none;
    }
    
    .slider-controls {
        bottom: 20px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .cta-cards {
        margin-top: -40px;
    }
    
    .cta-card {
        margin-bottom: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .page-banner {
        padding: 40px 0;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    /* Tablet: smaller arrows */
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .feature-card,
    .news-card {
        margin-bottom: var(--spacing-sm);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-content h1 {
        font-size: 24px;
    }
    
    .slider-content p {
        font-size: 14px;
    }
}

/* ══════════ FACILITIES SECTION STYLES ══════════ */
.fp-facilities {
  background: var(--warm-white);
  padding: 80px 0;
}
.fp-facilities .fp-eyebrow {
  color: var(--gold);
}
.fp-facilities .fp-section-title {
  color: var(--text-dark);
}
.fp-facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.fp-facility-item {
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .35s ease, box-shadow .35s ease, background .3s ease;
}
.fp-facility-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(7,26,16,.09);
  background: rgba(255,255,255,.12);
}
.fp-facility-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,168,67,.22), rgba(212,168,67,.06));
  border: 1.5px solid rgba(212,168,67,.35);
}
.fp-facility-icon i {
  font-size: 28px;
  color: var(--gold-light);
}
.fp-facility-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.fp-facility-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.94rem;
  color: var(--text-mid);
  line-height: 1.6;
}
