/* Global Styles */
:root {
    --primary-color: #12b93c;
    --secondary-color: #0d8a2d;
    --accent-color: #17e049;
    --light-color: #f4fff6;
    --dark-color: #0a6621;
    --bs-primary: #12b93c;
    --bs-primary-rgb: 18, 185, 60;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.brand-text {
    font-size: 1.2rem;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('../images/hero-bg.png') center/cover no-repeat;
    color: white;
    margin-top: -56px; /* Adjust for fixed navbar */
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero .btn-primary {
    background-color: var(--secondary-color);
    border: none;
    padding: 0.8rem 2rem;
    transition: transform 0.3s ease;
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* About Section */
#about {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    color: var(--dark-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-content {
    padding-right: 2rem;
}

/* Stats Counter Boxes */
.counter-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-5px);
}

.counter {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.counter-box h4 {
    color: var(--dark-color);
    font-size: 1rem;
    margin: 0;
}

/* Feature Items */
.features-grid {
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    background-color: var(--light-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-content p {
    margin: 0;
    color: #666;
}

/* About Image Section */
.about-image-wrapper {
    position: relative;
    padding: 2rem;
}

.main-image {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card.card-1 {
    top: 10%;
    left: 0;
}

.image-card.card-2 {
    bottom: 10%;
    right: 0;
}

.image-card i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.image-card h5 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.image-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 992px) {
    .about-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .image-card {
        padding: 0.8rem;
    }
    
    .image-card i {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    padding: 3rem 0;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

footer .list-unstyled li {
    margin-bottom: 0.8rem;
}

footer .social-links {
    display: flex;
    gap: 1rem;
}

footer .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

footer .social-links a i {
    color: white;
    font-size: 1.2rem;
}

/* Powered by Sinotech */
.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.powered-by span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sinotech-link {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sinotech-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sinotech-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.sinotech-link:hover .sinotech-logo {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive adjustments for Sinotech logo */
@media (min-width: 992px) {
    .sinotech-logo {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .powered-by {
        margin: 1rem 0;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .sinotech-logo {
        height: 30px;
    }
}

@media (max-width: 576px) {
    .powered-by {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .sinotech-logo {
        height: 25px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    .brand-text {
        font-size: 1rem;
    }
    .logo-img {
        height: 30px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Buttons */
.btn-custom {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Academics Section */
#academics {
    background-color: var(--light-color);
}

/* Level Cards */
.level-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.level-card:hover {
    transform: translateY(-10px);
}

.level-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.level-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.level-card-header {
    padding: 2rem;
    text-align: center;
    color: white;
}

.level-card-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.level-card-header h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.age-range {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nursery-bg {
    background: linear-gradient(45deg, var(--primary-color), #17cc45);
}

.primary-bg {
    background: linear-gradient(45deg, var(--primary-color), #0f9230);
}

.holiday-bg {
    background: linear-gradient(45deg, var(--primary-color), #14b538);
}

.level-card-body {
    padding: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Activity Cards */
.activity-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.activity-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.activity-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.activity-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.activity-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.activity-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.activity-features li {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.activity-features li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

@media (max-width: 768px) {
    .level-card.featured {
        transform: none;
    }
    
    .level-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .activity-card {
        margin-bottom: 1rem;
    }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: #f5f5f5;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-decoration: none;
    color: inherit;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 185, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-info p {
    margin: 0 0 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-info i {
    font-size: 1.5rem;
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-info i {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Custom Styles */
.lb-data .lb-caption {
    font-size: 1.1rem;
    font-weight: 600;
}

.lb-data .lb-number {
    font-size: 0.9rem;
    color: #666;
}

.lb-closeContainer {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

/* Filter Buttons */
.gallery-filter {
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Contact Section Styles */
.contact-info-card .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: #e8f5ea;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item div {
    flex: 1;
}

.contact-item h5 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.contact-form-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
}

.form-floating {
    margin-bottom: 1rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(18, 185, 60, 0.25);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.instagram:hover {
    background: #e4405f;
}

.social-link.linkedin:hover {
    background: #0077b5;
}

.map-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-item {
        padding: 0.8rem;
    }
    
    .contact-item i {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}

/* Admissions Section */
#admissions .accordion-button:not(.collapsed) {
    background-color: var(--secondary-color);
    color: white;
}

#admissions .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

#admissions .form-control,
#admissions .form-select {
    padding: 0.8rem;
    margin-bottom: 1rem;
}

/* Admissions Section */
.admission-option-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admission-option-card:hover {
    transform: translateY(-5px);
}

.admission-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.admission-option-card:hover::before {
    transform: scaleX(1);
}

.option-header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.benefits-list {
    margin-bottom: 2rem;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.benefits-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Admission Steps */
.step-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.step-card h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step-card p {
    color: #666;
    margin: 0;
}

/* Required Documents */
.documents-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.document-item:hover {
    transform: translateX(10px);
    background: #e8f5ea;
}

.document-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.document-item span {
    color: var(--dark-color);
    font-weight: 500;
}

/* Application Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: var(--light-color);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--dark-color);
    font-weight: 600;
}

.form-label {
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(18, 185, 60, 0.25);
}

@media (max-width: 768px) {
    .admission-option-card {
        margin-bottom: 1.5rem;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
    
    .document-item {
        margin-bottom: 1rem;
    }
}

/* Override Bootstrap's Primary Color */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
} 