@font-face {
    font-family: chem;
    src: url(chemistry.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: chem;
    background-color: #041C32;
    color: #ECB365;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

                                                /*NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #041C32;
    backdrop-filter: blur(12px);
    padding: 22px 0;
    z-index: 1000;
    border-bottom: 2px solid rgb(6, 70, 99);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    color: #ECB365;
}

.navmenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    list-style: none;
}

.navlink {
    color: #ECB365;
    font-size: 17px;
    font-weight: 540;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.navlink:hover {
    text-shadow: 1px 1px 2px #ECB365;
    color: #ECB365;
}

.navlink::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(#ECB365, #064663);
    transition: width ease 0.3s;
}

.navlink:hover::after {
    width: 100%;
}

#loginbtn {
    background: linear-gradient(rgb(82, 53, 123), rgb(84, 89, 172));
    padding: 10px 25px;
    border-radius: 15px;
    color: #91b0cd;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#loginbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(84, 89, 172, 0.4);
}

#loginbtn::after {
    display: none;
}

                                    /*  HOME SECTION*/  
#Home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 50px 60px;
    gap: 60px;
}

#Home > video {
    height: 26rem;
    width: auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
    min-width: 300px;
    align-self: center;
}

#Home > video:hover {
    background: rgba(0, 255, 200, 0.2);
    transform: translateY(-5px);
    box-shadow: 20px 20px 25px rgba(0, 255, 200, 0.2);
}

.main {
    height: auto;
    width: 50%;
    max-width: 600px;
    margin: 0;
    flex: 1;
}

.main h1 {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 20px;
}

.main > h1 > u {
    color: rgb(3, 125, 182);
}

.main p {
    padding: 30px 0;
    font-size: 30px;
    color: rgb(8, 91, 130);
}

.mainbtn {
    padding: 15px 0;
    display: flex;
    gap: 30px;
    font-size: 30px;
    flex-wrap: wrap;
}

.mainbtn .btn {
    text-decoration: none;
    border: none;
    border-radius: 10px;
    background: rgb(6, 70, 99);
    padding: 10px 20px;
    color: white;
    transition: background 300ms ease, transform 200ms ease;
    white-space: nowrap;
    font-size: 25px;
    text-align: center;
}

.mainbtn .youtube img {
    height: 25px;
    width: auto;
    align-self: center;
}

.mainbtn .Explore:hover {
    background: linear-gradient(rgb(82, 53, 123), rgb(84, 89, 172));
    transform: translateY(-3px);
}

.mainbtn .youtube:hover {
    background: linear-gradient(rgb(184, 33, 50), rgb(242, 178, 140));
    transform: translateY(-3px);
}

.stats {
    padding: 40px 0;
    height: auto;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.mainstats {
    display: flex;
    align-items: center;
    flex-direction: column;
    line-height: 1.3;
}

.mainstats .statsno {
    font-size: 35px;
}

.mainstats .statsname {
    font-size: 20px;
    color: rgb(8, 91, 130);
}

.mainstats i {
    font-size: 25px;
}

                            /*  COURSES SECTION  */
#courses {
    padding: 0 40px;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.course-header h1 {
    font-size: 52px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 20px;
}

.course-header p {
    padding: 20px 0 30px 0;
    font-size: 22px;
    text-align: center;
    color: rgb(8, 91, 130);
}

.course-card {
    background: rgba(20, 25, 45, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    height: 480px;
    width: 100%;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
}

.card-img img {
    height: 200px;
    width: 100%;
    border: none;
    border-radius: 12px;
    object-fit: cover;
}

.card-pointers {
    padding: 17px 3px;
    font-size: 14px;
    color: white;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.card-level {
    background: linear-gradient(rgb(82, 53, 123), rgb(84, 89, 172));
    padding: 3px 7px;
    border: 1px solid #041C32;
    border-radius: 10px;
}

.card-lecture {
    background: rgb(96, 20, 20);
    padding: 3px 7px;
    border: 1px solid #041C32;
    border-radius: 10px;
}

.card-title {
    color: white;
    font-size: 20px;
    font-weight: 400;
}

.card-teacher {
    color: rgb(8, 91, 130);
    padding: 10px 0;
    font-size: 17px;
}

.card-desc {
    color: rgb(8, 91, 130);
    padding: 5px 0;
    font-size: 19px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.4);
}

.cardblur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    backdrop-filter: blur(0px);
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 2;
}

.card {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    filter: blur(0px);
}

.course-card:hover .cardblur {
    opacity: 1;
    backdrop-filter: blur(10px);
}

.course-card:hover .card {
    background: black;
    opacity: 1;
    filter: blur(12px);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    gap: 20px;
    padding: 15px 10px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 3;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-card:hover .card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.overlay-title {
    padding: 20px;
    font-size: 25px;
    font-weight: bold;
    color: #58a0c2;
    text-shadow: 0 0 20px rgba(13, 15, 15, 0.6);
}

.overlay-desc {
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.4;
    max-width: 400px;
}

.overlay-list {
    padding: 10px 40px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
}

.card-overlay button {
    padding: 10px 15px;
    position: relative;
    background-color: #380909;
    border: none;
    color: rgb(255, 253, 253);
    font-family: chem;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-overlay button:hover {
    background-color: #5a0a0a;
    transform: scale(1.05);
}

                            /* FREE COURSES  */
.free-courses {
    margin: 60px 30px 30px 30px;
}

.free-content {
    padding: 20px 0 30px 0;
    font-size: 20px;
    text-align: center;
    color: rgb(8, 91, 130);
}

.free-content h2 {
    font-size: 50px;
    font-weight: 400;
    color: #ECB365;
    padding-bottom: 13px;
}

.free-content p {
    color: rgb(8, 91, 130);
    font-size: 22px;
    line-height: 1.5;
}

.free-content > p > a {
    text-decoration: none;
    color: #58a0c2;
}

.free-parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1rem;
    padding: 0 40px;
    height: 70vh;
}

.comdiv {
    border: 7px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.grid-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.comdiv:hover .grid-overlay {
    opacity: 1;
}

.grid-overlay-text {
    color: #ECB365;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.free-div1 {
    grid-row: span 6;
}

.free-div2 {
    grid-row: span 3;
}

.free-div3 {
    grid-row: span 4;
}

.free-div4 {
    grid-column-start: 2;
    grid-row-start: 4;
    background: rgba(255, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.free-div4 a {
    text-decoration: none;
    font-size: 22px;
    color: white;
    font-weight: 600;
}

.free-div5 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 5;
}

                            /* ABOUT SECTION */
#About {
    margin: 6rem 0;
    padding: 0 40px;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-content h2 {
    color: #ECB365;
    font-size: 45px;
    text-align: center;
    font-weight: 400;
}

.about-content p {
    color: rgb(8, 91, 130);
    font-size: 22px;
    text-align: center;
    padding: 1rem 0;
}

.list-container {
    color: rgb(8, 91, 130);
    font-size: 20px;
    text-align: start;
    padding: 1rem 0 0 5rem;
    list-style: none;
    line-height: 1.6;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.half-list {
    flex: 1;
    list-style: none;
    min-width: 250px;
}

.half-list li {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.half-list li:hover {
    color: #58a0c2;
    transform: translateX(10px);
}

.half-list i {
    margin-right: 10px;
}

/* ==================== INSTRUCTOR SECTION ==================== */
.instructor-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    margin-top: 3rem;
}

.instructor {
    width: 100%;
    max-width: 1200px;
    height: auto;
}

.instructor > h2 {
    color: #ECB365;
    font-size: 45px;
    text-align: center;
    font-weight: 400;
}

.instructor > p {
    color: rgb(8, 91, 130);
    font-size: 22px;
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 20px;
}

.inst-card {
    background: linear-gradient(135deg, rgba(15, 30, 60, 0.8) 0%, rgba(20, 40, 70, 0.6) 100%);
    border: 2px solid rgba(0, 255, 200, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin: 10px 0 20px 0;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inst-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 255, 200, 0.1);
}

.inst-img img {
    flex-shrink: 0;
    border: #00ffc8 2px solid;
    border-radius: 100%;
    object-fit: cover;
    height: 12rem;
    width: 12rem;
}

.inst-nam {
    flex: 1;
}

.inst-name {
    font-size: 36px;
    font-weight: 300;
    color: white;
    margin-bottom: 15px;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid;
    transition: all 0.3s ease;
}

.badge.primary {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    border-color: #9333ea;
    color: white;
}

.badge.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.badge.secondary {
    background: transparent;
    border-color: rgba(0, 255, 200, 0.4);
    color: #00ffc8;
}

.badge.secondary:hover {
    background: rgba(0, 255, 200, 0.1);
    border-color: rgba(0, 255, 200, 0.6);
}

.inst-desc {
    color: #d0d0d0;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* ==================== CONTACT SECTION ==================== */
#contact {
    padding: 60px 40px;
}

#contact h2 {
    font-size: 52px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.form-section {
    background: linear-gradient(135deg, rgba(15, 30, 60, 0.6) 0%, rgba(20, 40, 70, 0.4) 100%);
    border: 2px solid rgba(0, 255, 200, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    color: #00ffc8;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 200, 0.2);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #666;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 200, 0.5);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

.submit-btn {
    background: linear-gradient(135deg, #00ffc8 0%, #00d9b5 100%);
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    color: #0a0e27;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 200, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.arrow-icon {
    font-size: 18px;
}

.floating-section {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.floating-container {
    position: relative;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 200, 0.3);
    animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 70px;
    height: 70px;
    top: -20px;
    left: 30px;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    width: 90px;
    height: 90px;
    top: 50px;
    right: 40px;
    animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    width: 75px;
    height: 75px;
    bottom: 20px;
    left: 50px;
    animation-delay: 1s;
}

.floating-icon:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    width: 65px;
    height: 65px;
    top: 100px;
    right: 20px;
    animation-delay: 1.5s;
}

.central-envelope {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    border: 3px solid rgba(0, 255, 200, 0.5);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 60px rgba(102, 126, 234, 0.8);
    }
}

.info-box {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 200, 0.2);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.info-title {
    color: #00ffc8;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-text {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(0, 255, 200, 0.1);
    border: 2px solid rgba(0, 255, 200, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #00ffc8;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(0, 255, 200, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 200, 0.2);
}

/* ==================== FOOTER ==================== */
.footer {
    margin-top: 4rem;
    background: #081030;
    padding: 40px 50px 30px;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-img {
    height: auto;
    width: 20%;
    min-width: 100px;
}

.footer-desc {
    color: #888;
    line-height: 1.8;
    margin: 20px 0 25px 0;
    font-size: 18px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.social-links li {
    color: #00ffff;
    list-style: none;
    font-size: 14px;
    transition: all 0.3s;
}

.social-links a {
    color: #888;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #00ffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 14px;
}

/* ==================== MEDIA QUERIES ==================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 30px;
    }

    .navmenu {
        gap: 30px;
    }

    .main {
        max-width: 100%;
    }

    .main h1 {
        font-size: 60px;
    }

    .main p {
        font-size: 24px;
    }

    .stats {
        max-width: 100%;
    }

    #Home {
        padding: 120px 30px 60px;
        flex-direction: column;
    }

    #Home > video {
        height: 20rem;
    }

    .course-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 20px 0;
    }

    .course-card {
        height: auto;
        width: 100%;
    }

    .free-parent {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        padding: 0 30px;
        height: auto;
        gap: 20px;
    }

    .free-div1 {
        grid-row: span 1;
        grid-column: span 1;
    }

    .free-div2 {
        grid-row: span 1;
    }

    .free-div3 {
        grid-row: span 1;
    }

    .free-div4 {
        grid-column-start: auto;
        grid-row-start: auto;
    }

    .free-div5 {
        grid-column: span 1;
        grid-row: span 1;
        grid-column-start: auto;
        grid-row-start: auto;
    }

    .list-container {
        flex-direction: column;
        gap: 30px;
    }

    .inst-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .inst-img img {
        height: 10rem;
        width: 10rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-section {
        height: 400px;
    }

    #courses {
        padding: 0 30px;
    }

    #About {
        padding: 0 30px;
    }

    #contact {
        padding: 40px 30px;
    }

    .footer {
        padding: 30px 30px 20px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .logo {
        font-size: 20px;
    }

    .navmenu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #041C32;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 2px solid rgb(6, 70, 99);
    }

    .navmenu.active {
        max-height: 300px;
    }

    .navmenu li {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(235, 179, 101, 0.1);
    }

    .hamburger {
        display: flex;
    }

    #Home {
        min-height: auto;
        padding: 100px 20px 40px;
        flex-direction: column;
        gap: 30px;
    }

    #Home > video {
        height: 15rem;
        width: 100%;
    }

    .main {
        max-width: 100%;
    }

    .main h1 {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .main p {
        font-size: 18px;
        padding: 20px 0;
    }

    .mainbtn {
        gap: 15px;
        font-size: 16px;
        justify-content: flex-start;
    }

    .mainbtn .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .stats {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 30px;
        padding: 20px 0;
    }

    .mainstats {
        width: 100%;
    }

    #courses {
        padding: 0 20px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-card {
        height: auto;
        padding: 20px;
    }

    .course-header h1 {
        font-size: 32px;
    }

    .course-header p {
        font-size: 16px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-desc {
        font-size: 16px;
    }

    .free-parent {
        grid-template-columns: 1fr;
        padding: 0 20px;
        height: auto;
    }

    .free-content h2 {
        font-size: 32px;
    }

    .free-content p {
        font-size: 16px;
    }

    #About {
        margin: 3rem 0;
        padding: 0 20px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-content p {
        font-size: 16px;
    }

    .list-container {
        flex-direction: column;
        padding: 0;
        gap: 20px;
        font-size: 16px;
    }

    .half-list {
        min-width: 100%;
    }

    .half-list li {
        margin-bottom: 12px;
    }

    .instructor-body {
        padding: 20px;
        margin-top: 1rem;
    }

    .instructor > h2 {
        font-size: 32px;
    }

    .instructor > p {
        font-size: 16px;
    }

    .inst-card {
        padding: 25px 15px;
        gap: 15px;
    }

    .inst-img img {
        height: 8rem;
        width: 8rem;
    }

    .inst-name {
        font-size: 28px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .inst-desc {
        font-size: 14px;
    }

    #contact {
        padding: 30px 20px;
    }

    #contact h2 {
        font-size: 32px;
        margin-bottom: 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-section {
        padding: 25px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input,
    .form-textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .form-textarea {
        min-height: 120px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .floating-section {
        height: 350px;
    }

    .floating-container {
        height: 250px;
    }

    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .central-envelope {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }

    .info-box {
        padding: 20px;
    }

    .info-title {
        font-size: 20px;
    }

    .info-text {
        font-size: 13px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .footer {
        padding: 30px 20px 20px;
    }

    .footer-img {
        width: 30%;
    }

    .footer-desc {
        font-size: 14px;
        margin: 15px 0 20px 0;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 18px;
    }

    .navmenu.active {
        max-height: 280px;
    }

    #Home {
        padding: 90px 15px 30px;
    }

    #Home > video {
        height: 12rem;
    }

    .main h1 {
        font-size: 32px;
    }

    .main p {
        font-size: 16px;
        padding: 15px 0;
    }

    .mainbtn {
        flex-direction: column;
        gap: 10px;
    }

    .mainbtn .btn {
        width: 100%;
        text-align: center;
    }

    .stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .mainstats .statsno {
        font-size: 28px;
    }

    .mainstats .statsname {
        font-size: 14px;
    }

    .course-grid {
        padding: 0;
    }

    .course-header h1 {
        font-size: 26px;
    }

    .course-header p {
        font-size: 14px;
        padding: 15px 0 20px 0;
    }

    .card-pointers {
        gap: 20px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-teacher {
        font-size: 14px;
    }

    .card-desc {
        font-size: 14px;
    }

    .free-content h2 {
        font-size: 26px;
        padding-bottom: 10px;
    }

    .free-content p {
        font-size: 14px;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .about-content p {
        font-size: 14px;
        padding: 0.8rem 0;
    }

    .list-container {
        font-size: 14px;
    }

    .half-list li {
        margin-bottom: 10px;
    }

    .instructor > h2 {
        font-size: 26px;
    }

    .instructor > p {
        font-size: 14px;
    }

    .inst-card {
        padding: 20px 12px;
    }

    .inst-img img {
        height: 7rem;
        width: 7rem;
    }

    .inst-name {
        font-size: 24px;
        margin-bottom: 10px;