/* style.css */

/* -------------------------------------- */
/* 1. CSS Reset, Variables, and Base Styles */
/* -------------------------------------- */

:root {
    /* --- CATHERINE NABIRYE'S PROFESSIONAL PALETTE --- */
    --color-primary: #008080; /* Deep Teal/Turquoise (Main Accent) */
    --color-secondary: #34495e; /* Dark Slate Blue/Grey (Buttons/Strong Text) */
    --color-text-dark: #2c3e50; /* Very Dark Text */
    --color-text-light: #666666; /* Standard Body Text */
    --color-background-light: #f9f9f9; /* Light Gray Background */
    --color-background-hero: #f0f8ff; /* Light Sky Blue/Almost White */
    --color-card-blue: #e0f0ff; /* Light blue/teal for cards (Bookings form) */
    --color-card-green: #eaf0e9; /* Light green/mint for other cards */
    --color-footer-bg: #2c3e50; /* Footer background uses Dark Text color for depth */
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --transition-speed: 0.3s;
    --border-radius-large: 30px; 
    --border-radius-small: 8px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: white;
    overflow-x: hidden;
}

/* Base Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.0rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--color-secondary);
}


.footer-logo a img {
    border-radius: 12px;
}

/* -------------------------------------- */
/* 2. Navigation Bar (main-nav) */
/* -------------------------------------- */

.main-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
   /* font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700; */
    color: var(--color-primary);
    margin: 0;
    padding: 0;
    height: 55px;
    width: 55px;
    object-fit: cover;
    object-position: center;
}
.logo-admin,
.logo-admin img {
   color: var(--color-primary);
    margin: 0;
    padding: 0;
    height: 70px;
    object-fit: cover;
    object-position: center;
    border-radius: 10%; 
}

.logo-admin img
.logo img {
    margin: 0;
    padding: 0;
    height: 70px;
    width: 70px;
    object-fit: cover;
    object-position: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a:not(.nav-button) {
    color: var(--color-text-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:not(.nav-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    background: var(--color-primary);
    transition: width var(--transition-speed) ease;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a:not(.nav-button):hover::after {
    width: 100%;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text-dark);
    background: none;
    border: none;
    padding: 5px;
}

/* -------------------------------------- */
/* 3. Global Buttons and Forms */
/* -------------------------------------- */

.button {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-large);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
    text-align: center;
    cursor: pointer;
}

.button-primary {
    background-color: var(--color-primary);
    color: white;
}

.button-primary:hover {
    background-color: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.button-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Form Styles */
.contact-form input:not([type="submit"]),
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-small);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Status Messages */
.status-initial, .status-loading { color: var(--color-text-light); }
.status-success { color: #28a745; font-weight: bold; }
.status-error { color: #dc3545; font-weight: bold; }


/* -------------------------------------- */
/* 4. Home Page Feature Styles (New) */
/* -------------------------------------- */

/* CAROUSEL STYLES */
.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    padding: 0 20px;
}
/* Ensure hero content inside the slide is styled */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-image-block {
    flex: 1;
    text-align: right;
}
.hero-text-block {
    flex: 1;
    max-width: 50%;
}
.hero-text-block h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

@media (max-width: 900px) {
    .hero-text-block h1 {
        font-size: 1.6rem;
    }
    .hero-text-block .subtitle {
        font-size: 0.9rem;
    }
}
.hero-text-block .subtitle {
    text-align: left;
    margin-bottom: 30px;
    font-size: 1.3rem;
    max-width: none;
}

/* Carousel Dots */
.carousel-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: var(--color-primary);
}

.dots-container {
    text-align: center;
    padding: 20px 0;
}

/* ANALYTICS/INSIGHTS SECTION */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.analytic-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-small);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all var(--transition-speed);
}

.analytic-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.analytic-card .icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.analytic-card .number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.analytic-card .label {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* -------------------------------------- */
/* 5. Footer & Newsletter */
/* -------------------------------------- */

.main-footer {
    background-color: var(--color-footer-bg);
    color: #ecf0f1;
    padding: 50px 0 20px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-col p, .footer-col ul {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-col a {
    color: #bdc3c7;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.social-links a {
    font-size: 1.2rem;
    margin-right: 15px;
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #3c5267;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* NEWSLETTER FORM STYLE (New addition for footer) */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.newsletter-form input[type="email"] {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    background-color: white;
    color: var(--color-text-dark);
}
.newsletter-form button {
    width: 100%;
    margin: 0; 
    border-radius: var(--border-radius-small);
}


/* -------------------------------------- */
/* 6. Utility & Animation */
/* -------------------------------------- */

.animate-fade { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-fade.visible { opacity: 1; transform: translateY(0) translateX(0) !important; }

.fade-up { transform: translateY(20px); }
.fade-down { transform: translateY(-20px); }
.fade-left { transform: translateX(20px); }
.fade-right { transform: translateX(-20px); }

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }


@keyframes subtlePulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
    50% { transform: scale(1.005); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
}

.animate-pulse-subtle:hover {
    animation: subtlePulse 2s ease-in-out infinite;
}

/* -------------------------------------- */
/* 7. Media Queries (Responsiveness) */
/* -------------------------------------- */

@media (max-width: 992px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        display: none;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text-block {
        max-width: 100%;
        text-align: center;
    }
    .hero-text-block .subtitle {
        text-align: center;
    }
    .hero-image-block {
        display: block;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        justify-content: center;
        text-align: center;
    }
    .footer-col {
        min-width: 80%;
    }
    .social-links {
        text-align: center;
    }
}



/* --- Global Form Input Styles --- */
.gs-form input[type="text"],
.gs-form input[type="email"],
.gs-form input[type="tel"],
.gs-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: border-color 0.3s;
    background-color: #ffffff;
}

.gs-form textarea {
    resize: vertical;
}

.gs-form input:focus,
.gs-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 5px rgba(90, 119, 255, 0.3);
}

/* Form Status Messages */
.status-initial {
    color: var(--color-text-light);
    font-size: 0.9rem;
    min-height: 1.2rem; /* Reserve space */
}

.status-loading {
    color: var(--color-primary);
    font-weight: 600;
}

.status-success {
    color: #28a745; /* Green */
    font-weight: 600;
}

.status-error {
    color: var(--color-secondary); /* Pink/Red accent */
    font-weight: 600;
}














/* -------------------------------------- */
/* 7. New Sections: Services, Sessions, Testimonials, Full-Width Image */
/* -------------------------------------- */

/* --- Services Preview Section --- */

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-small);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image-container {
    width: 100%;
    /* 16:9 aspect ratio for the image container */
    padding-top: 56.25%; 
    position: relative;
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-content h4 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Sessions Preview Section --- */

.sessions-content-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-card-green); /* Light background for visibility */
    padding: 40px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sessions-text {
    max-width: 65%;
}

.sessions-cta .button {
    white-space: nowrap; /* Prevent button text from wrapping */
}

/* --- Testimonials Section --- */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius-small);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-top: 4px solid var(--color-primary); /* Accent line */
}

.testimonial-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.author-title {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* --- Full-Width Visual Break/Carousel Section --- */

.full-width-carousel-section {
    width: 100%;
    overflow: hidden;
    padding: 0;
}

.carousel-slide-content {
    position: relative;
    width: 100%;
    /* 16:10 Aspect Ratio */
    padding-top: 62.5%; 
    height: 0;
}

.full-width-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px 5%;
    max-width: 500px;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.text-overlay h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: white;
}

.text-overlay p {
    font-size: 1.1rem;
    margin-bottom: 0;
}


/* -------------------------------------- */
/* 8. Media Queries for Responsiveness */
/* -------------------------------------- */

@media (max-width: 992px) {
    /* Services & Testimonials Grid */
    .service-cards-grid,
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    /* Sessions Block */
    .sessions-content-block {
        flex-direction: column;
        text-align: center;
    }

    .sessions-text {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .sessions-cta {
        width: 100%;
    }

 

}

@media (max-width: 600px) {
    .text-overlay {
        padding: 20px 5%;
    }

    .text-overlay h3 {
        font-size: 1.8rem;
    }
}

.news-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

@media (max-width: 900px) {
       .news-section .container {
        display: flex;
        flex-direction: column;
}

.news-article h2 {
    font-size: 1.3rem;
}

.news-article img,
.news-section .container img {
    height: 200px;
}

}

.news-article h2 {
    font-size: 1.4rem;
}

.news-article img,
.news-section .container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border-bottom: 5px solid var(--color-primary);
}

.nav-button {

    background-color: var(--color-primary);
    color: var(--color-background-light);
    font-weight: 700;
    
    border-radius: var(--border-radius-large);
  /*  border: 2px solid var(--color-primary); */
    padding: 12px 25px;
    transition: all 0.3s ease;
    box-shadow: 0px 0.9px 8px rgba(0, 0, 0, 0.24)
}

.nav-button:hover {
    background-color: transparent;
    scale: 1.05;
    box-shadow: 0px 1px 15px gray;
    
    color: var(--color-primary);
}

/* --- WhatsApp Floating Button Style --- */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px; /* Distance from the bottom of the screen */
    right: 40px; /* Distance from the right of the screen */
    
    /* WhatsApp Green Color */
    background-color: #25d366;
    color: #FFF;
    
    border-radius: 50px; /* Makes it a perfect circle */
    text-align: center;
    font-size: 30px;
    
    /* Centers the icon */
    line-height: 60px;
    
    /* Adds a soft shadow */
    box-shadow: 2px 2px 3px #999;
    z-index: 1000; /* Ensures it sits above all other content */
    
    /* Smooth transition for hover effect */
    transition: background-color 0.3s, transform 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E; /* Slightly darker green on hover */
    transform: scale(1.05) translateY(-2px); /* Subtle lift and expansion */
    text-decoration: none; /* Remove underline on hover */
}

/* Make it smaller on mobile devices */
@media (max-width: 600px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
        line-height: 50px;
    }
}

.logo p {
    font-size: 0.8rem;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    font-weight: normal;
}

.container .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}







/* Typed text animation  */

/* --- New Styles for Typing Animation --- */

.typed-cursor {
    /* Style for the blinking cursor */
    font-size: 1.4rem; /* Match the font size of the parent paragraph */
    font-weight: 600;
    color: var(--color-primary); 
    opacity: 1;
    animation: blink 0.7s infinite;
    display: inline-block; 
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}