/* Mind Growth Tuition Classes - Custom Styles */

/* ==================== Root Variables ==================== */
:root {
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-green: #16a34a;
    --primary-green-light: #22c55e;
    --primary-brown: #92400e;
    --primary-brown-light: #a16207;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f3f4f6;
    --gray: #6b7280;
    --gray-dark: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--primary-green-light));
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 15px;
}

/* ==================== Buttons ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border: none;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border: none;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== WhatsApp Float Button ==================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    transition: var(--transition);
}

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

@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);
    }
}

/* ==================== Navbar ==================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand .logo-img {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 5px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-light);
    color: var(--primary-blue);
    padding-left: 30px;
}

.enquiry-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border: none;
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.enquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* ==================== Hero Section ==================== */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(22, 163, 74, 0.05));
    overflow: hidden;
}

.hero-content h1 {
    color: var(--primary-blue);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .tagline {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons .btn {
    margin: 10px 10px 10px 0;
}

.hero-image {
    position: relative;
}

.hero-image-holder {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.hero-image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(180deg);
}

.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-green-light));
    opacity: 0.2;
    animation: rotate 20s linear infinite;
}

.decoration-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: -20px;
    right: -20px;
}

.decoration-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==================== Features/Stats Cards ==================== */
.feature-card, .stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
}

.feature-card:hover, .stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon, .stat-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h4, .stat-card h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-card p, .stat-card p {
    color: var(--gray);
    margin-bottom: 0;
}

.stat-card .number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Classes Section ==================== */
.class-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.class-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.class-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-green);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.class-card-body {
    padding: 25px;
}

.class-card-body h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.class-card-body p {
    color: var(--gray);
    margin-bottom: 15px;
}

.class-fee {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* ==================== Fee Structure Table ==================== */
.fee-table {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.fee-table table {
    margin-bottom: 0;
}

.fee-table thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
}

.fee-table thead th {
    padding: 20px;
    font-weight: 600;
    border: none;
}

.fee-table tbody tr {
    transition: var(--transition);
}

.fee-table tbody tr:hover {
    background: var(--gray-light);
}

.fee-table tbody td {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.fee-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* ==================== Testimonials ==================== */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 20px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--primary-green);
}

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

.testimonial-info h5 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.testimonial-info .class-info {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--gray-dark);
    line-height: 1.8;
    font-style: italic;
}

/* ==================== Gallery ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    color: var(--white);
    margin-bottom: 0;
}

/* ==================== Video Section ==================== */
.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.video-info {
    padding: 20px;
}

.video-info h5 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* ==================== FAQ Section ==================== */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-accordion .accordion-button {
    background: var(--white);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 20px;
    font-size: 1.1rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
}

.faq-accordion .accordion-body {
    padding: 20px;
    color: var(--gray-dark);
    line-height: 1.8;
}

/* ==================== Contact Form ==================== */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control {
    padding: 12px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.contact-info-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info-item h5 {
    color: var(--white);
    margin-bottom: 5px;
}

.contact-info-item p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* ==================== Footer ==================== */
.footer-main {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--white);
}

.footer-top {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-green);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

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

.social-icon:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
    color: var(--white);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 10px;
}

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

.footer-contact li {
    display: flex;
    align-items: start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--primary-green);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
}

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

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .tagline {
        font-size: 1.3rem;
    }
    
    .hero-image-holder {
        width: 300px;
        height: 300px;
        margin: 30px auto;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ==================== Animations ==================== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zoom-in {
    animation: zoomIn 0.5s ease-in;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
