/*
Theme Name: Britfort
Author: DiXL7
Author URI: https://dixl7.com/
Description: A basic WordPress theme.
Version: 1.0.0
*/
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
    font-weight: 500;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #f5a620;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.rainbow-text {
    background-image: linear-gradient(to right, #de3418, #f5a620, #53a127, #217ca4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.red-text {
    color: #de3418 !important;
}
.yellow-text {
    color: #f5a620 !important;
}
.green-text {
    color: #53a127 !important;
}
.blue-text {
    color: #217ca4 !important;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #217ca4;
    color: white;
}
.contact-content .btn-primary {
    width: 100%;
    height: 58px;
}

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

.btn-whatsapp {
    background: #25d366;
    color: white;
    margin-left: 15px;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    width: 100px;
    height: 70px;
    object-fit: contain;
    margin-right: 15px;
}

.nav-logo span {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #217ca4;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #217ca4;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    color: #333;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #217ca4;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.3);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 400px;
}



/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
}

/* About Section */
.about {
    padding: 100px 0 35px;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
}

.about-text h3 {
    color: #f5a620;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

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

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

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 2rem;
    color: #53a127;
    margin-top: 0.5rem;
}

.feature h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 500;
    color: #217ca4;
    font-family: 'Fredoka One', cursive;
}

.stat-label {
    color: #666;
    font-weight: 600;
}

/* Programs Section */
.programs {
    padding: 100px 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 5px solid #53a127;
}

.program-card:nth-child(2) {
    border-top-color: #ffa500;
}

.program-card:nth-child(3) {
    border-top-color: #4ecdc4;
}

.program-card:nth-child(4) {
    border-top-color: #45b7d1;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #217ca4, #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.program-icon i {
    font-size: 2rem;
    color: white;
}

.program-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.age {
    color: #f5a620;
    font-weight: 600;
    margin-bottom: 1rem;
}

.program-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.program-card ul {
    list-style: none;
    text-align: left;
}

.program-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.program-card li:before {
    content: "★";
    color: #ffa500;
    position: absolute;
    left: 0;
}

/* Gallery Section */
.gallery {
    padding: 100px 0 35px;
    background: #f8f9fa;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.5rem;
}

.album {
    width: calc(50% - 1.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: white;
}

.album:hover {
    transform: scale(1.03);
}

.album h3 {
    margin-bottom: 0.5rem;
    color: #53a127;
    text-align: center;
}

.album-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.album-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.album-images img:hover {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.modal-content img {
    max-width: 80%;
    max-height: 80vh;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0 35px;
    background: white;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
}

.testimonial-content:before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #f8f9fa;
}

.stars {
    margin-bottom: 1rem;
}

.stars i {
    color: #de3418;
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #de3418;
}

/* Contact Section */
.contact {
    padding: 100px 0 35px;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: #217ca4;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form input:not(.btn),
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #f5a620;
}

.contact-form textarea {
    grid-column: 1 / -1;
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #53a127;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 80px;
    height: 56px;
    object-fit: contain;
    margin-right: 10px;
}

.footer-logo span {
    line-height: 1.2;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-section p > *:nth-child(2) {
    padding-left: 1rem;
}

.footer-section p i {
    width: 2.5rem;
    text-align: center;
    margin-top: 0.25rem;
}





.footer-section h4 {
    color: #217ca4;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #53a127;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #f5a620;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #ffa500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-whatsapp {
        margin: 10px auto;
        max-width: 300px;
        height: 48px;
        width: auto;
    }
    .btn-primary{
        margin: 10px auto;
        max-width: 300px;
        height: 48px;
        width: auto;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-section p {
        text-align: center;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .nav-logo img {
        width: 80px;
        height: 56px;
    }

    .nav-logo span {
        font-size: 1.5rem;
    }

    .footer-logo img {
        width: 60px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-logo img {
        width: 60px;
        height: 42px;
    }

    .nav-logo span {
        font-size: 1.2rem;
    }

    .footer-logo img {
        width: 50px;
        height: 35px;
    }
}

.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 5px;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.5rem;
}

.album {
    width: calc(50% - 1.5rem);
    margin-bottom: 1.5rem;
}

.album {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: white;
}

.album:hover {
    transform: scale(1.03);
}

.album h3 {
    margin-bottom: 0.5rem;
    color: #fff;
    text-align: center;
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.album:hover .gallery-overlay {
    transform: translateY(0);
}

.album img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.album:hover img {
    transform: scale(1.05);
}

.lightgallery > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0 20px; /* Replicate container padding */
    max-width: 1200px; /* Replicate container max-width */
    margin: 0 auto; /* Center content */
}

.hero-text {
    flex: 1;
}

#heroCanvas {
    flex: 0 0 auto;
    width: calc(50% - 20px); /* Take half the available width minus gap */
    min-width: 300px; /* Minimum width to ensure visibility */
    height: 100%; /* Match hero section height */
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    #heroCanvas {
        width: 300px; /* Square canvas on mobile */
        height: 300px; /* Fixed height for mobile */
        margin: 0 auto 1rem;
    }
}