/* South African Theme for OneSchool */

:root {
    /* Facebook-like colors */
    --fb-blue: #1877f2;
    --fb-green: #42b72a;
    --fb-dark: #18191a;
    --fb-light: #f0f2f5;
    --fb-text: #1c1e21;
    --fb-text-light: #65676b;
    --fb-white: #ffffff;
    --fb-border: #dddfe2;
    
    /* South African accent colors (for highlights only) */
    --sa-yellow: #FFB612;
    --sa-red: #DE3831;
    
    /* Updated theme colors (primarily Facebook-like) */
    --primary-color: var(--fb-blue);
    --secondary-color: var(--fb-green);
    --accent-color: var(--sa-yellow);
    --highlight-color: var(--sa-red);
    --dark-color: var(--fb-dark);
    --light-color: var(--fb-light);
    --text-color: var(--fb-text);
    --text-light: var(--fb-text-light);
    --white: var(--fb-white);
    --border-color: var(--fb-border);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--fb-blue) 0%, #0d6efd 100%);
    --secondary-gradient: linear-gradient(135deg, var(--fb-green) 0%, #36a420 100%);
    --accent-gradient: linear-gradient(135deg, var(--sa-yellow) 0%, #ffc740 100%);
}

/* General Styles */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--primary-color);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--white);
    font-weight: 600;
    padding: 8px 15px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

.navbar-dark .navbar-nav .nav-link.btn {
    border-radius: 30px;
    padding: 8px 20px;
    margin-left: 5px;
}

.navbar-dark .navbar-nav .nav-link.btn-outline-light {
    border: 2px solid var(--white);
}

.navbar-dark .navbar-nav .nav-link.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link.btn-secondary {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.navbar-dark .navbar-nav .nav-link.btn-secondary:hover {
    background-color: var(--sa-blue);
}

/* Button Styles */
.btn {
    border-radius: 30px;
    font-weight: 600;
    padding: 10px 25px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background: var(--sa-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 122, 77, 0.3);
}

.btn-secondary {
    background: var(--secondary-gradient);
    border: none;
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--sa-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 35, 149, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 122, 77, 0.3);
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    min-height: 700px;
}

.slide::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.slide-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.slider-controls {
    bottom: 50px;
}

.prev-slide, .next-slide {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.prev-slide:hover, .next-slide:hover {
    background: rgba(255, 255, 255, 0.4);
}

.dot {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Stats Counter */
.stats-counter {
    background-color: var(--white);
    padding: 80px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
    margin-top: -100px;
    border-radius: 15px;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

.counter-box {
    text-align: center;
    padding: 20px;
}

.counter-box i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.counter-box h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.counter-box h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Institutions Section */
.institutions-section {
    padding: 120px 0 80px;
    background-color: var(--light-color);
}

.institution-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

.institution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.institution-image {
    height: 250px;
    overflow: hidden;
}

.institution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.institution-card:hover .institution-image img {
    transform: scale(1.1);
}

.institution-content {
    padding: 30px;
}

.institution-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.institution-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--white);
}

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

.feature-card {
    background-color: var(--light-color);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.2);
}

.feature-icon i {
    font-size: 2.5rem;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Biometric Section */
.biometric-section {
    padding: 100px 0;
    background: var(--primary-gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.biometric-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgaWQ9InBhdHRlcm4tYmFja2dyb3VuZCIgd2lkdGg9IjQwMCUiIGhlaWdodD0iNDAwJSIgZmlsbD0idHJhbnNwYXJlbnQiPjwvcmVjdD48Y2lyY2xlIGZpbGw9IiNmZmZmZmYiIGN4PSIyMCIgY3k9IjIwIiByPSIxIiBvcGFjaXR5PSIwLjEiPjwvY2lyY2xlPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSI+PC9yZWN0Pjwvc3ZnPg==');
    opacity: 0.2;
}

.biometric-content {
    position: relative;
    z-index: 1;
    padding-right: 30px;
}

.biometric-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.biometric-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.biometric-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.biometric-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.biometric-features li i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.biometric-image {
    position: relative;
    z-index: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.biometric-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: -50px auto 20px;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 0 30px 30px;
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.testimonial-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.testimonial-title {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.testimonial-rating {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1540553016722-983e48a2cd10?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

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

.footer-about {
    margin-bottom: 30px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
}

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

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

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

.footer-links {
    margin-bottom: 30px;
}

.footer-links h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

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

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-newsletter {
    display: flex;
    margin-top: 20px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-newsletter button {
    padding: 0 20px;
    border: none;
    border-radius: 0 30px 30px 0;
    background-color: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .slide-content h1 {
        font-size: 3rem;
    }
    
    .biometric-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-counter {
        margin-top: -50px;
    }
    
    .counter-box {
        margin-bottom: 30px;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content h2 {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}