/* ---
Global Setup & Variables
--- */
:root {
    --primary-color: #0056D2;
    --secondary-color: #0fb1a7;
    --white: #ffffff;
    --dark-blue: #002b6b;
    --light-blue: #e6f0ff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --bg-light: #f9faff;
    --font-family: 'Poppins', sans-serif;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 2.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

ul {
    list-style: none;
}

/* ---
Buttons
--- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.3);
}

.btn-primary:hover {
    background: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 210, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-blue);
    color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ---
Header & Navbar
--- */
.navbar {
    width: 100%;
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navbar.sticky {
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-medium);
}

.navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ---
Hero Section
--- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 43, 107, 0.8), rgba(0, 86, 210, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-content .btn-group {
    justify-content: center;
}

.hero-content .btn-secondary {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.hero-content .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* ---
Card Grids (Services, Exams, etc.)
--- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card,
.exam-card,
.exam-card-large {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover,
.exam-card:hover,
.exam-card-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3,
.exam-card h3,
.exam-card-large h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.service-card p,
.exam-card p,
.exam-card-large p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-card .price-note {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* ---
Why Choose Us Section
--- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---
Testimonials Section
--- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--primary-color);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-card p::before {
    content: '\f10d'; /* Font Awesome quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-card h4 {
    font-weight: 600;
    color: var(--dark-blue);
    text-align: right;
}

/* ---
Footer
--- */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.footer-about p {
    font-size: 0.9rem;
    color: #f0f0f0;
    opacity: 0.8;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a,
.footer-social a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.footer-social a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #2a4a8a;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ---
Floating WhatsApp Icon
--- */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    animation: none;
    color: var(--white);
}

.whatsapp-fab .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: var(--text-dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.whatsapp-fab:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ---
Animations (Fade-in on Scroll)
--- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---
Sub-Page Header
--- */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ---
Services Page
--- */
.detailed-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-item-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-item-card:hover {
    transform: translateY(-5px);
}

.service-item-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-item-content {
    padding: 1.5rem;
}

.service-item-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.service-item-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Gradient hover effect for service buttons */
.service-item-content .btn-primary {
    background: var(--primary-color);
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    background-size: 200% 100%;
    transition: background-position 0.4s ease;
}

.service-item-content .btn-primary:hover {
    background-position: -100% 0;
    transform: translateY(-2px);
}


/* ---
Templates Page
--- */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.template-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    overflow: hidden;
}

.template-image-wrapper {
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.template-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.template-card:hover img {
    transform: scale(1.1);
}

.template-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0;
}

.template-card .btn-secondary {
    margin-bottom: 1.5rem;
}

/* ---
Exams Page
--- */
.exams-page .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.exam-card-large {
    text-align: left;
    padding: 2rem;
}

.exam-card-large .card-icon {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ---
Contact Page
--- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--light-blue);
}

#contact-form button {
    width: 100%;
    font-size: 1rem;
}

.contact-info-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.contact-info-wrapper p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-details i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    width: 30px;
    text-align: center;
}

.contact-details strong {
    display: block;
    font-weight: 600;
}

.contact-details a {
    color: var(--text-light);
    word-break: break-all;
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-social a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--text-dark);
}

.contact-social a:hover {
    color: var(--primary-color);
}


/* ---
Responsive Design (Media Queries)
--- */

/* Tablets and small desktops */
@media (max-width: 992px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active i::before {
        content: '\f00d'; /* 'X' icon */
    }

    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }

    .whatsapp-fab {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-fab:hover .tooltip-text {
        visibility: hidden;
        opacity: 0;
    }
}