:root {
    --primary-red: #FF0000;
    --primary-dark: #CC0000;
    --dark-gray: #333;
    --light-gray: #666;
    --white: #fff;
    --off-white: #f9f9f9;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --heading-font: 'Outfit', sans-serif;
    --body-font: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-gray);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

/* Header & Logo */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 250px;
    width: auto;
    object-fit: contain;
    filter: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: var(--heading-font);
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--white), var(--off-white));
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--dark-gray);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 2.5rem;
}

/* Update the services grid layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 0 20px;
}

/* Service card styling */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card .service-icon {
    color: var(--primary-red);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.service-card p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card .btn {
    padding: 12px 24px;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Update the grid layout to force 4 columns */
.accreditation-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
}

/* Make it responsive */
@media (max-width: 1200px) {
    .accreditation-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .accreditation-cards {
        grid-template-columns: 1fr;
    }
}

/* Update card styling for consistent heights */
.accreditation-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accreditation-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.accreditation-card img {
    width: 200px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    width: 100%;
    max-width: 800px; /* Slightly reduced from 900px for better readability */
    margin: 0 auto;
    text-align: center;
    padding: 0 20px; /* Added padding for mobile */
}

.about-content p {
    margin: 0 auto 1.5rem; /* Changed to auto margins */
    color: var(--light-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%; /* Ensure text doesn't overflow container */
}

/* Added more specific class and rule to enforce text wrapping */
.about-content p {
    width: 100%;
    word-wrap: break-word;
    white-space: normal;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content {
        padding: 0 15px;
    }
    
    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Fees Section */
.fees {
    padding: 80px 0;
    background: var(--white);
}

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

.fee-card {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.fee-list {
    margin-top: 1.5rem;
}

.fee-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
}

.fee-item:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact {
    padding: 80px 0;
    background: var(--off-white);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--dark-gray);
    font-family: var(--heading-font);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f8f8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-logo {
    height: 70px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer h4 {
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact p,
.footer-legal p {
    margin-bottom: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.info-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
    width: 20px;
}

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

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--heading-font);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .logo-img {
        height: 60px;
    }

    .footer-logo {
        height: 50px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .hero,
    .services,
    .accreditations,
    .fees,
    .contact {
        padding: 60px 0;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info,
    .footer-contact,
    .footer-legal {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}