/* 
    Wellspring Limited - Main Stylesheet
    Author: Antigravity AI
*/

:root {
    --primary-blue: #003366;
    --secondary-blue: #0056b3;
    --accent-green: #28a745;
    --bg-light: #f8f9fa;
    --white: #FFFFFF;
    --black: #212529;
    --gray: #6c757d;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--black);
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.top-bar-left span i {
    margin-right: 8px;
    color: var(--accent-green);
}

.top-bar-right a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: var(--accent-green);
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.shrink {
    padding: -5px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

header.shrink .nav-container {
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-right: 15px;
    border-radius: 5px;
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif !important;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-green);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

nav ul li a:hover::after {
    width: 100%;
}

/* CTA Button in Navigation */
nav ul li a.nav-cta {
    background-color: var(--accent-green);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    margin-left: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

nav ul li a.nav-cta::after {
    display: none; /* No underline animation for the button */
}

nav ul li a.nav-cta:hover {
    background-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
    transform: translateY(-2px);
    color: var(--white);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    padding: 12px 25px;
    font-weight: 500;
    width: 100%;
    color: var(--gray);
}

.dropdown-menu li a:hover {
    background-color: rgba(0, 51, 102, 0.05);
    color: var(--primary-blue);
    padding-left: 30px; /* Slight indent effect */
}

/* Remove underline animation for dropdown links */
.dropdown-menu li a::after {
    display: none;
}

.dropdown-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s;
}

nav ul li:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.donate-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* Hero Slider */
.hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--black);
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.5) saturate(0.6); /* Desaturated/Faded look */
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 1000px;
    text-align: left;
}

.hero h2 {
    font-size: 85px; /* Huge vibrant text */
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 25px;
    color: #008cff; /* Vibrant Electric Blue */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 45px;
    max-width: 700px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.slide-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slide-dot.active {
    background: var(--accent-green);
    border-color: white;
    transform: scale(1.2);
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-green);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-green);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--accent-green);
    color: var(--white);
    transform: translateY(-5px);
}

/* Newsletter Form */
.newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Circular-button row layout (fallback/custom version like school.html) */
.newsletter:not(:has(.btn)) {
    flex-direction: row;
}

.newsletter input {
    flex-grow: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 20px;
    border-radius: 50px;
    color: white;
    font-family: inherit;
}

.newsletter input:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
    border-color: var(--accent-green);
}

/* Apply circular styling only when the button is NOT a standard full-width button (.btn) */
.newsletter button:not(.btn) {
    background: var(--accent-green);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter button:not(.btn):hover {
    transform: scale(1.1) rotate(15deg);
    background: #218838;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-blue);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 60px;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

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

.back-to-top:hover {
    background-color: var(--accent-green);
    color: var(--white);
    transform: translateY(-5px);
}

/* Page Header Utilities */
.page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), 
                url('../images/logo1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    font-weight: 500;
}

.breadcrumb li {
    margin: 0 10px;
}

.breadcrumb li a {
    color: var(--accent-green);
    text-decoration: none;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 15px;
    color: rgba(255,255,255,0.5);
}

.breadcrumb li:last-child::after {
    content: '';
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container { width: 95%; }
}

/* Church & Leadership Styles */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.leader-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.leader-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 5px solid var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.leader-card:hover .leader-img {
    border-color: var(--accent-green);
    transform: scale(1.05);
}

.leader-card h4 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 5px;
}

.leader-card p {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.leader-bio {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 25px;
}

.social-mini {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-mini a {
    color: var(--gray);
    transition: var(--transition);
    font-size: 18px;
}

.social-mini a:hover {
    color: var(--primary-blue);
}

/* Feature Image with Frame */
.img-frame {
    position: relative;
    display: inline-block;
    width: 100%;
}

.img-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--accent-green);
    border-radius: 20px;
    z-index: -1;
    transition: var(--transition);
}

.img-frame:hover::before {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
}

.img-frame img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.img-frame:hover img {
    transform: translate(-5px, -5px);
}

/* Gallery Styles */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: var(--bg-light);
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-green);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal */
#lightboxModal .modal-content {
    background: transparent;
    max-width: 90%;
    padding: 0;
    box-shadow: none;
}

#lightboxModal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

#lightboxCaption {
    color: white;
    margin-top: 20px;
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
}

/* Premium Form Styles */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    color: var(--black);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
    transform: translateY(-2px);
}

/* Specific Form Containers */
.donation-container, .contact-container, .admission-container {
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.02);
}

.form-section-title {
    font-size: 20px;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 40px 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
}

.form-section-title::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    margin-right: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Amount Selector in Donation */
.amount-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.amount-option {
    flex: 1;
    min-width: 100px;
    padding: 15px;
    text-align: center;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.amount-option:hover, .amount-option.selected {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: scale(1.05);
}

/* Contact Specific */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    padding: 0;
    overflow: hidden;
    max-width: 1100px;
}

.contact-info {
    background: var(--primary-blue);
    color: white;
    padding: 60px;
}

.contact-form {
    padding: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-green);
}

@media (max-width: 992px) {
    .nav-container { padding: 10px 0; }
    .menu-toggle { display: block; }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        display: none;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    nav.active { display: flex; }
    nav ul { flex-direction: column; width: 100%; }
    nav ul li { margin: 0; width: 100%; }
    nav ul li a { padding: 15px 25px; border-bottom: 1px solid var(--gray); width: 100%; }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        background-color: var(--gray);
        width: 100%;
        padding-left: 20px;
    }
    nav ul li.active .dropdown-menu { display: block; }
    .donate-btn { margin: 15px 25px; display: inline-block; text-align: center; }

    /* Typography scale */
    h1 { font-size: 32px !important; }
    h2 { font-size: 28px !important; }
    h3 { font-size: 24px !important; }
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 28px; }
    .page-header { padding: 60px 0; }
    .page-header h1 { font-size: 32px; }
    
    /* Footer responsiveness */
    .footer-container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .newsletter input { text-align: center; }
    .copyright a { display: inline-block !important; margin: 10px auto 0 !important; }

    /* Grid overrides */
    .programs-grid, .reasons-grid, .story-container { grid-template-columns: 1fr; }
    
    /* Hero adjustments */
    .hero-content { padding-top: 80px; padding-left: 15px; padding-right: 15px; }
    .hero h2 { font-size: 32px !important; }
    .hero p { font-size: 16px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
    .logo h1 { font-size: 18px; }
    .logo-img { height: 50px; }
    .stat-number, .counter-number { font-size: 36px !important; }
    .modal-content { padding: 30px 20px; }
}
/* Sermon Styles */
.sermon-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 25px;
}

.sermon-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.sermon-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), #001a33);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.sermon-info h4 {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 5px;
}

.sermon-meta {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    gap: 20px;
}

.sermon-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sermon-player {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sermon-player audio {
    height: 40px;
    width: 250px;
}

@media (max-width: 992px) {
    .sermon-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .sermon-meta {
        justify-content: center;
        margin-bottom: 20px;
    }
    .sermon-player audio {
        width: 100%;
    }
}
/* Pillars Section */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pillar-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-15px);
    color: white;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card i {
    font-size: 50px;
    color: var(--accent-green);
    margin-bottom: 25px;
    transition: var(--transition);
}

.pillar-card:hover i {
    color: white;
    transform: scale(1.1);
}

.pillar-card h3 {
    margin-bottom: 20px;
    font-size: 28px;
}

.pillar-card p {
    font-size: 16px;
    opacity: 0.8;
}

/* Testimonial Slider */
.testimonial-section {
    padding: 120px 0;
    background: linear-gradient(rgba(0, 51, 102, 0.03), rgba(0, 51, 102, 0.03));
    position: relative;
}

.testimonial-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-content::after {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 50px;
    color: var(--accent-green);
    opacity: 0.1;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid var(--accent-green);
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    color: var(--primary-blue);
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author h4 {
    font-size: 22px;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 18px;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 51, 102, 0.02);
}

.faq-question i {
    transition: var(--transition);
    color: var(--accent-green);
}

.faq-item.active .faq-question {
    background: var(--primary-blue);
    color: white;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0.5, 1);
    color: var(--gray);
}

.faq-item.active .faq-answer {
    padding: 25px 30px;
    max-height: 1000px;
}
/* CTA Section */
.cta-banner { 
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), 
                url('../images/testmonies.JPG');
    background-size: cover; 
    background-position: center; 
    padding: 120px 0; 
    text-align: center; 
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-banner .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-banner .hero-btns {
    justify-content: center;
    width: 100%;
}
/* --- Professional Polish & Dynamic Effects --- */

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 51, 102, 0.1);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

#back-to-top:hover {
    background: var(--accent-green);
    transform: translateY(-5px);
}

/* Header Scroll Effect */
header.shrink {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

header.shrink .logo-img {
    height: 50px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation for icons */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
