/* ============================================
   IELTS & PTE Test Preparation Website
   Modern, Clean, Responsive Design
   ============================================ */

/* CSS Variables for Theme */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --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);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent font size adjustment on iOS */
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.75rem; letter-spacing: -0.5px; }
h2 { font-size: 2.25rem; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    max-width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   HEADER & NAVIGATION (Bootstrap 5 Enhanced)
   ============================================ */

header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

/* Scrolled header effect */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 0.25rem 0;
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }
    
    header.scrolled {
        padding: 0.5rem 0;
    }
}

/* Bootstrap Navbar Customization */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 2rem;
    transition: transform 0.3s ease;
}

.navbar-brand.logo:hover {
    transform: scale(1.05);
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

/* Nav Links Styling */
.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.05);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.1);
}

/* Bootstrap Dropdown Enhancement */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    transform: translateX(5px);
}

/* Navbar Toggler Custom Styling */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.navbar-toggler:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.navbar-toggler:hover .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(37, 99, 235, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Menu Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1.5rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        animation: slideDown 0.3s ease-out;
        border: 1px solid var(--border-color);
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: var(--bg-light);
        color: var(--primary-color) !important;
    }
    
    /* Mobile Dropdown Styling */
    .dropdown-toggle::after {
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        box-shadow: none;
        background-color: var(--bg-light);
        margin: 0.5rem 0 0 0;
        padding: 0.5rem;
        border: none;
        animation: expandDown 0.3s ease-out;
    }
    
    @keyframes expandDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 200px;
        }
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        margin-bottom: 0.25rem;
        border-radius: 0.5rem;
        font-size: 0.95rem;
    }
    
    .dropdown-item:last-child {
        margin-bottom: 0;
    }
    
    .dropdown-item:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: var(--white) !important;
        transform: translateX(3px);
    }
    
    /* Make clickable areas larger for touch */
    .nav-link,
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn i {
    margin-right: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-accent:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-title h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CARDS & GRID
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon i {
    font-size: 2.5rem;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ============================================
   CONTENT SECTIONS (IELTS/PTE Pages)
   ============================================ */

.content-section {
    background-color: var(--white);
    padding: 3rem 0;
}

.content-section:nth-child(even) {
    background-color: var(--bg-light);
}

.content-box {
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.content-box:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.content-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-box p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    padding: 2rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.info-item h4 i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.info-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Headings with Icons */
h2 i, h3 i, h4 i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.card h3 i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ============================================
   TABLES
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

th, td {
    padding: 1.25rem 1.5rem;
    text-align: left;
}

th {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background-color: var(--bg-light);
}
    background-color: var(--bg-light);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    -webkit-appearance: none; /* Remove default iOS styling */
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile form adjustments */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent iOS zoom on focus */
        padding: 1rem;
    }
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc2626;
}

.form-group.error .form-error {
    display: block;
}

.form-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: none;
}

.form-success.show {
    display: block;
}

/* ============================================
   CONTACT INFO
   ============================================ */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.contact-item-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item-content h4 {
    margin-bottom: 0.25rem;
}

.contact-item-content p {
    margin: 0;
}

/* Social Media List */
.social-media-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-media-list a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-media-list a i {
    font-size: 1.25rem;
    width: 20px;
}

.social-media-list a:hover {
    color: var(--primary-dark);
}

/* Contact Item Icon */
.contact-item-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item-icon i {
    font-size: 1.75rem;
}

/* Map Container */
.map-container {
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    min-height: 300px;
    border: none;
}

@media (max-width: 768px) {
    .map-container {
        margin: 1.5rem 0;
    }
    
    .map-container iframe {
        min-height: 250px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links-column a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    font-size: 1.75rem;
    transition: transform 0.3s, opacity 0.3s;
    display: inline-block;
    color: var(--white);
}

.social-links a i {
    font-size: 1.5rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.bg-light {
    background-color: var(--bg-light);
}

/* Visual Separator */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 3rem 0;
    opacity: 0.3;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for touch devices */
    .btn {
        min-height: 48px;
        padding: 1rem 2.5rem;
    }
    
    .nav-link,
    .dropdown-item {
        min-height: 48px;
        padding: 0.85rem 1.25rem;
    }
    
    .card {
        /* Remove hover effects on touch devices */
        transition: none;
    }
    
    .card:active {
        transform: scale(0.98);
    }
    
    /* Disable hover animations on touch */
    .btn:hover::before {
        display: none;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Landscape */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 2rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1.25rem;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.05rem;
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .section-title h2 {
        font-size: 1.85rem;
    }

    .section-title p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }

    /* Content Boxes */
    .content-box {
        padding: 1.75rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Tables */
    table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* Contact Info */
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .social-links {
        justify-content: flex-start;
    }
    
    .footer-section h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: 100%;
    }
    
    .section-title h2 {
        font-size: 1.65rem;
    }

    .btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .content-box {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-brand.logo {
        font-size: 1.5rem;
    }
    
    .navbar-brand.logo small {
        font-size: 0.45em !important;
    }
}

/* ============================================
   ONLINE CLASSES AD BANNER
   ============================================ */

.online-classes-ad {
    padding: 0 !important;
    margin: 2rem 0;
}

.ad-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    }
    50% {
        background: linear-gradient(135deg, #764ba2 0%, #f093fb 50%, #667eea 100%);
    }
}

.ad-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.ad-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    z-index: 1;
}

.ad-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

.ad-text h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-text h3 i {
    color: #ffd700;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.ad-text p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.ad-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.btn-ad {
    background: #fff;
    color: #667eea;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-ad:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: #25d366;
    color: #fff;
}

.btn-ad i {
    font-size: 1.4rem;
}

.ad-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ad-banner {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .ad-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .ad-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .ad-text h3 {
        font-size: 1.35rem;
        justify-content: center;
    }
    
    .ad-text p {
        font-size: 0.95rem;
    }
    
    .btn-ad {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .ad-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .ad-banner {
        padding: 1.5rem 1rem;
    }
    
    .ad-text h3 {
        font-size: 1.15rem;
    }
    
    .ad-text p {
        font-size: 0.85rem;
    }
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    line-height: 60px;
}

@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);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        line-height: 50px;
    }
}
