:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --bg-color: #f7f9fc;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --accent-color: #ffeaa7;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Styled Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 992px) {

    body.custom-cursor-active,
    body.custom-cursor-active a,
    body.custom-cursor-active button,
    body.custom-cursor-active .btn,
    body.custom-cursor-active [role="button"],
    body.custom-cursor-active input[type="submit"],
    body.custom-cursor-active .doc-square-box,
    body.custom-cursor-active .drive-folder {
        cursor: none !important;
    }

    .custom-cursor {
        width: 30px;
        height: 30px;
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 99999;
        transition: transform 0.15s ease-out, width 0.3s, height 0.3s, background 0.3s;
        transform: translate(-50%, -50%);
        mix-blend-mode: difference;
    }

    .custom-cursor-dot {
        width: 6px;
        height: 6px;
        background: var(--secondary-color);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 100000;
        transform: translate(-50%, -50%);
    }

    .custom-cursor.active {
        transform: translate(-50%, -50%) scale(1.5);
        background: rgba(255, 107, 107, 0.1);
        border-color: var(--secondary-color);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.accent-text {
    color: var(--primary-color);
}

/* Header & Nav */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-header.sticky {
    padding: 0.5rem 0;
    background: #fff;
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 50px;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    color: #fff;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    z-index: 1;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    border: none;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

/* Background Blobs */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: move 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -10%;
    left: -5%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 30%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

/* Typewriter Effect */
.typing-container {
    display: inline-block;
    vertical-align: bottom;
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Footer Enhancements */
.footer-new {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    color: #fff;
    padding: 100px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(78, 205, 196, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.footer-grid-new {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-tray {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.social-tray a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-tray a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.footer-bottom-new {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Cards & Components */
.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

/* Footer */
.main-footer {
    background: #fff;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
    gap: 1.5rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.footer-contact p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    /* .hero-content h1 {
        font-size: 2rem;
    } */

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Side Popup Styles */
.side-popup {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    z-index: 2000;
    transition: var(--transition);
    visibility: hidden;
}

.side-popup.active {
    right: 0;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: absolute;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.side-popup.active .popup-content {
    right: 0;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 12px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

@media (max-width: 500px) {
    .popup-content {
        width: 100%;
        right: -100%;
        padding: 2rem 1.5rem;
    }

    .popup-header h3 {
        font-size: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .popup-body p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

/* Floating Admission Button */
.floating-admission {
    position: fixed;
    right: -130px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px 0 0 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
    cursor: pointer;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -5px 5px 15px rgba(255, 107, 107, 0.3);
}

.floating-admission:hover {
    right: 0;
}

.floating-whatsapp {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp .btn-text {
    display: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.floating-admission i,
.floating-whatsapp i {
    font-size: 1.2rem;
}

.floating-admission .btn-text,
.floating-whatsapp .btn-text {
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .floating-admission {
        right: -170px;
    }

    .floating-whatsapp {
        right: -130px;
    }
}

/* Social Links Expansion */
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.main-footer {
    background: #fff;
    position: relative;
    overflow: hidden;
    padding: 100px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.footer-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -10%;
    left: -5%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Footer Link Spacing & Mobile Centering */
.footer-links {
    gap: 8px !important;
}

.footer-contact p {
    margin-bottom: 0.8rem !important;
}

@media (max-width: 768px) {
    .main-footer {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .social-links,
    .footer-links {
        align-items: center !important;
        justify-content: center !important;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact p {
        justify-content: center;
        display: flex;
        align-items: center;
    }
}

.main-footer .container {
    position: relative;
    z-index: 2;
}

/* Logo Scrolling Animation */
.partners-wrapper {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.partners-carousel-track {
    display: flex;
    align-items: center;
    gap: 6rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.partners-carousel-track i {
    font-size: 2.5rem;
    opacity: 0.5;
    filter: grayscale(1);
    transition: 0.3s;
}

.partners-carousel-track i:hover {
    opacity: 1;
    filter: grayscale(0);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partners-wrapper:hover .partners-carousel-track {
    animation-play-state: paused;
}

/* Testimonial Image Fix */
.card img[style*="border-radius: 50%"] {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
}

/* Mobile Responsive Styles for Small Devices */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 80vh !important;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero h1 br {
        display: none;
    }

    .hero p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero p br {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem;
    }

    /* Typing Animation Mobile Fix */
    .typing-container {
        display: inline-block !important;
        vertical-align: bottom !important;
    }

    .typing-text {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .typing-text::after {
        content: '|' !important;
        animation: blink 0.7s infinite !important;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 2rem;
    }

    .section {
        padding: 50px 0 !important;
        margin-top: 50px !important;
    }

    /* Popular Courses Section Mobile */
    .card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    .card>div {
        height: auto !important;
    }

    .card img {
        width: 100% !important;
        height: auto !important;
        border-radius: 20px !important;
    }

    .card a {
        font-size: .8rem;
    }

    .card .offer-badge {
        font-size: .6rem !important;
        top: 10px !important;
        right: 10px !important;
        padding: 6px !important;
    }

    .card h3 {
        font-size: 1.3rem !important;
    }

    .card p {
        font-size: 0.9rem !important;
    }

    /* Statistics Section Mobile */
    .stat-counter {
        font-size: 2.5rem !important;
    }

    /* Why Choose Us Section Mobile */
    .card h3 {
        font-size: 1.2rem;
    }

    /* Newsletter Section Mobile */
    #newsletterForm {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    #newsletterForm input {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem;
    }

    #newsletterForm button {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
    }

    /* Buttons General Mobile */
    .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem !important;
    }

    .btn-secondary {
        padding: 0.8rem 2rem !important;
    }

    /* Course Cards Mobile */
    .card[style*="width: 400px"] {
        width: 100% !important;
    }

    /* Floating Buttons Mobile */
    .floating-admission,
    .floating-whatsapp {
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    .floating-admission .btn-text,
    .floating-whatsapp .btn-text {
        font-size: 0.85rem;
    }

    /* Footer Mobile Adjustments */
    .footer-grid-new {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .footer-col h4 {
        font-size: 1.2rem;
    }

    /* Testimonials Mobile */
    .card[style*="border-radius: 40px"] {
        padding: 2rem !important;
    }

    /* Blog Cards Mobile */
    article.card {
        width: 100% !important;
    }

    article.card h3 {
        font-size: 1.3rem !important;
    }

    /* Partners Section Mobile */
    .partners-carousel-track i {
        font-size: 2rem !important;
    }

    /* Newsletter Card Mobile */
    .card[style*="border-radius: 50px"] {
        padding: 2.5rem 1.5rem !important;
        border-radius: 30px !important;
    }

    .card[style*="border-radius: 50px"] h2 {
        font-size: 1.8rem !important;
    }

    .card[style*="border-radius: 50px"] p {
        font-size: 1rem !important;
    }

    /* About Page Mobile */
    .about-image img {
        border-radius: 20px !important;
        margin-bottom: 2rem;
    }

    .about-text h2 {
        font-size: 1.8rem !important;
    }

    .about-text p {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }

    .about-text ul {
        margin-bottom: 1.5rem !important;
    }

    .about-text ul li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem !important;
    }

    /* Courses Page Mobile */
    section[style*="padding-top: 150px"] {
        padding-top: 100px !important;
    }

    div[style*="text-align: center"] h1 {
        font-size: 2rem !important;
    }

    div[style*="text-align: center"] p {
        font-size: 0.95rem !important;
        padding: 0 1rem;
    }

    /* Course Cards Mobile - More Responsive */
    .card[style*="width: 500px"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .card[style*="width: 500px"]>div[style*="height: 240px"] {
        height: 200px !important;
    }

    .card[style*="width: 500px"] h3 {
        font-size: 1.2rem !important;
        min-height: auto !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    .card[style*="width: 500px"] p {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        margin-bottom: 1rem !important;
    }

    .card[style*="width: 500px"] div[style*="display: flex"] span {
        font-size: 0.8rem !important;
    }

    .card[style*="width: 500px"] div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: flex-start !important;
    }

    .card[style*="width: 500px"] .btn {
        width: 100% !important;
        text-align: center;
        padding: 0.9rem 1rem !important;
        font-size: 0.9rem;
    }

    .card[style*="width: 500px"] div[style*="position: absolute"] {
        font-size: 0.7rem !important;
        padding: 4px 12px !important;
        top: 10px !important;
        right: 10px !important;
    }

    /* Course Price Section Mobile */
    .card[style*="width: 500px"] div[style*="font-size: 1.4rem"] {
        font-size: 1.3rem !important;
    }

    .card[style*="width: 500px"] del {
        font-size: 0.85rem !important;
    }

    /* Contact Page Mobile */
    .contact-info h2 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .contact-info p {
        font-size: 0.95rem !important;
        text-align: center;
    }

    .contact-info h4 {
        font-size: 1rem !important;
    }

    .contact-info div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    .contact-info div[style*="width: 50px"] {
        margin-bottom: 0.5rem;
    }

    .contact-form.card {
        padding: 2rem 1.5rem !important;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem !important;
        padding: 0.9rem !important;
    }

    .contact-form label {
        font-size: 0.9rem !important;
    }

    .contact-form .btn {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }

    /* Map Section Mobile */
    .map-section {
        height: 300px !important;
        border-radius: 20px !important;
        margin-top: 3rem !important;
    }
}

/* Tablet Responsive Styles */
@media (max-width: 968px) {

    /* About Page Tablet */
    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    /* Courses Page Tablet */
    .card[style*="width: 500px"] {
        width: 100% !important;
        max-width: 450px !important;
    }

    div[style*="text-align: center"] h1 {
        font-size: 2.5rem;
    }

    section[style*="padding-top: 150px"] {
        padding-top: 120px !important;
    }

    /* Contact Page Tablet */
    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-form.card {
        padding: 2.5rem !important;
    }
}

/* About Page Specific Responsive Styles */
@media (max-width: 768px) {

    /* About Page - Stack grid on tablets and mobile */
    section[style*="padding-top: 150px"] {
        padding-top: 100px !important;
    }

    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    /* Contact Page - Stack grid on tablets and mobile */
    .contact-info {
        order: 1;
        margin-bottom: 2rem;
    }

    .contact-form {
        order: 2;
    }

    .about-image img {
        max-width: 100%;
        height: auto;
    }

    .about-text h2 {
        font-size: 2rem;
        text-align: center;
    }

    .about-text p {
        text-align: justify;
    }

    .about-text ul {
        padding-left: 0;
    }

    .about-text .btn {
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Mission & Vision Cards */
    .container[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .card h3 {
        text-align: center;
        font-size: 1.5rem;
    }

    .card p {
        text-align: center;
        font-size: 1rem;
    }

    /* Student Dashboard Specifics */
    main[style*="padding-top: 120px"] .container {
        padding: 0 1rem !important;
    }

    main div[style*="grid-template-columns: 280px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    aside .card[style*="position: sticky"] {
        position: static !important;
        padding: 1.5rem !important;
        margin-bottom: 0 !important;
        border-radius: 20px !important;
        width: 100% !important;
    }

    aside .card div[style*="width: 100px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    aside h3 {
        font-size: 1.2rem !important;
    }

    /* Redesigned Responsive Sidebar Nav */
    aside nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
        padding: 0 !important;
        margin-top: 1.5rem !important;
    }

    aside nav a {
        background: #fff !important;
        border: 1px solid #eee !important;
        margin: 0 !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
    }

    aside nav a i {
        font-size: 1rem !important;
        margin-right: 8px !important;
        margin-bottom: 0 !important;
    }

    /* Dashboard Content */
    section h1 {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }

    section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Course Cards in Dashboard */
    section div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Login & Register Cards Mobile */
    .card[style*="max-width: 500px"] {
        padding: 1.5rem !important;
        border-radius: 20px !important;
        margin: 0 1rem !important;
    }

    /* Drive Header */
    section div[style*="display: flex; justify-content: space-between"] {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.2rem !important;
        margin-bottom: 2rem !important;
        background: #fff !important;
        padding: 1.5rem !important;
        border-radius: 20px !important;
        box-shadow: var(--shadow) !important;
    }

    section div[style*="display: flex; justify-content: space-between"] .btn {
        width: 100% !important;
        padding: 1rem !important;
    }

    section div[style*="display: flex; justify-content: space-between"] h1 {
        margin-bottom: 0.5rem !important;
        font-size: 2rem !important;
    }

    /* Course Grid Mobile */
    section div[style*="display: grid; grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* Table & Drive Styles */
    .card.drive-table-card[style*="overflow: hidden"] {
        border-radius: 12px !important;
        overflow-x: auto !important;
    }

    .card[style*="overflow: hidden"] table {
        min-width: 600px;
    }

    .card[style*="overflow: hidden"] th,
    .card[style*="overflow: hidden"] td {
        padding: 0.8rem !important;
        font-size: 0.85rem !important;
    }

    /* Drive View Modal */
    #viewModal>div {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }

    /* Drive Grid Mobile (Square Boxes) */
    .drive-grid-mobile {
        display: grid !important;
    }

    .drive-table-card {
        display: none !important;
    }

    .doc-square-box {
        background: #fff;
        border-radius: 15px;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        aspect-ratio: 1 / 1;
        box-shadow: var(--shadow);
        position: relative;
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: var(--transition);
    }

    .doc-square-box:active {
        transform: scale(0.95);
    }

    .doc-icon-wrap {
        font-size: 2.5rem;
        color: var(--secondary-color);
        margin-bottom: 0.8rem;
    }

    .doc-details-wrap {
        width: 100%;
        overflow: hidden;
    }

    .doc-title {
        display: block;
        font-weight: 600;
        font-size: 0.85rem;
        color: var(--text-color);
        margin-bottom: 2px;
    }

    .doc-meta {
        font-size: 0.7rem;
        color: var(--text-muted);
    }

    .text-truncate {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .doc-actions-overlay {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .doc-actions-overlay a {
        width: 30px;
        height: 30px;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        color: var(--text-muted);
    }


    /* Responsive Spacing for Dashboard Main */
    main[style*="padding-top: 120px"] {
        padding-top: 100px !important;
        padding-bottom: 2rem !important;
    }

    /* Hide floating buttons on small screens if they get in the way - updated to keep whatsapp visible */
    .floating-admission {
        z-index: 10 !important;
    }

    .floating-whatsapp {
        z-index: 10 !important;
        left: 15px !important;
        bottom: 15px !important;
        transform: none !important;
    }

    /* Custom sidebar scrollbar */
    .sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 10px;
    }

    @media (max-width: 480px) {

        .floating-admission {
            transform: scale(0.8) translateY(-50%) !important;
            right: -130px !important;
        }

        .floating-admission:hover {
            right: 0 !important;
        }

        .floating-whatsapp {
            transform: scale(0.8) !important;
            left: 10px !important;
            bottom: 10px !important;
        }
    }
}

/* Center Popup Styles (Flash News) */
.center-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.center-popup.active {
    display: flex;
}

.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: -1;
}

.flash-content {
    background: #fff;
    width: 95%;
    max-width: 450px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    padding: 3rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
    animation: popupFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.flash-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.flash-badge {
    display: inline-block;
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.flash-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.flash-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.flash-promo {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
}

.promo-code {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.promo-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.flash-btn {
    width: 100%;
    padding: 1.2rem !important;
    font-size: 1.1rem !important;
    font-weight: 700;
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
    color: #fff !important;
}

@media (max-width: 500px) {
    .center-popup {
        padding: 10px;
    }

    .flash-content {
        padding: 2.5rem 1.5rem 1.5rem;
        border-radius: 20px;
    }

    .flash-title {
        font-size: 1.8rem;
    }

    .flash-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .promo-code {
        font-size: 1.4rem;
    }

    .flash-btn {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
}