* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Container for Large Screens */
.container {
    max-width: 100%;
    margin: 0 auto;
    /* ⭐ ADJUSTED: Reduced padding for small screens by default */
    padding: 0 1rem; 
}

@media(min-width: 1200px) {
    .container {
        max-width: 80%;
        padding: 0 2rem; /* Restore full padding on desktop */
    }
}

/* Header (Keep as is - handles desktop/mobile navigation correctly) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem; /* Reduced padding here for mobile header */
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav ul li a {
    font-weight: 500;
    color: #222;
    transition: color .3s;
}

nav ul li a:hover {
    color: #2E96CA;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    /* ⭐ ADJUSTED: Reduced margin-top for smaller screens */
    margin-top: 60px;
    background: url('5c1202d1-110d-4d71-9199-52335a6c5bde.png') center/cover no-repeat;
    color: #fff;
    text-align: center;
    /* ⭐ ADJUSTED: Reduced padding for mobile screen height */
    padding: 5rem 1rem; 
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 150, 202, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: auto;
}

.hero h1 {
    /* ⭐ ADJUSTED: Reduced font size for mobile titles */
    font-size: 2.2rem; 
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    /* ⭐ ADJUSTED: Reduced font size for mobile paragraph */
    font-size: 1rem; 
    margin-bottom: 2rem;
}

.hero .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all .3s;
    margin: 0.5rem 0.3rem; /* Adjusted horizontal margin */
    display: inline-block;
    font-size: 0.9rem; /* Smaller button text */
}

.btn-primary {
    background: #2E96CA;
    color: #fff;
}

.btn-primary:hover {
    background: #267fae;
}

.btn-secondary {
    background: #fff;
    color: #2E96CA;
    border: 2px solid #2E96CA;
}

.btn-secondary:hover {
    background: #2E96CA;
    color: #fff;
}

/* Sections */
section {
    /* ⭐ ADJUSTED: Reduced vertical padding for mobile */
    padding: 4rem 1rem; 
}

section h2 {
    /* ⭐ ADJUSTED: Reduced font size for mobile section titles */
    font-size: 2rem; 
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

section p {
    width: 100%;
    /* ⭐ ADJUSTED: Reduced font size for section paragraph */
    font-size: 1rem; 
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
    text-align: center;
    max-width: 600px; /* Added max-width for better readability */
}

.icon-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Reduced gap */
    flex-wrap: wrap;
}

.icon-list div {
    text-align: center;
    max-width: 45%; /* ⭐ ADJUSTED: Allows two columns on mobile */
}
/* Ensure icon-list div stacks on very small screens */
@media(max-width: 480px) {
    .icon-list div {
        max-width: 100%; 
    }
}


.icon-list i {
    font-size: 1.8rem;
    color: #2E96CA;
    margin-bottom: .5rem;
}

/* Courses (Grid should handle mobile well, minmax(220px, 1fr) is good) */
.courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* ⭐ ADJUSTED: Smaller min size for mobile */
    gap: 1rem;
}

.course-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem 1rem; /* Reduced padding */
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform .3s, box-shadow .3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.course-card i {
    font-size: 1.8rem;
    color: #2C9D81;
    margin-bottom: .8rem;
}

.course-card h3 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

/* App Section */
.app {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.section-h2 {
    margin-top: 4rem;
}

.app img {
    /* ⭐ ADJUSTED: Use a relative max-width for the mockup image */
    max-width: 80%; 
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin: 1.5rem auto;
}

.app-content {
    flex: 1;
    max-width: 100%; /* ⭐ ADJUSTED: Use full width on mobile */
    margin: auto;
    font-size: 1rem; /* Smaller text */
}

.app-content p {
    text-align: center;
    margin-bottom: 1.5rem;
}

.play-button img {
    height: 60px; /* ⭐ ADJUSTED: Smaller button size on mobile */
    width: auto;
    border-radius: 0;
    transition: transform .3s;
    background: transparent;
    transform: scale(1.05);
}

/* Contact */
form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

button {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: #2E96CA;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
}

button:hover {
    background: #267fae;
}


/* Footer (Using the responsive changes from the previous step) */
footer {
    background: #f4f4f4;
    padding: 3rem 1rem; /* Reduced padding for mobile */
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3rem;
    text-align: left;
}

/* New Footer Column styles for mobile stacking */
.footer-container > div {
    width: 200px; /* Desktop default */
}

.footer-container > div:first-child {
    width: 250px; /* Desktop default */
}

.footer-container h4 {
    color: #222;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start; /* Changed from center to start for consistency */
}

.footer-links a {
    color: #555;
    font-weight: 400;
    font-size: 1rem;
    display: block;
    transition: color .3s;
}

.footer-links a:hover {
    color: #2E96CA;
}

.footer-socials {
    margin-top: 1rem;
    width: auto;
    text-align: left;
}

.footer-socials a {
    margin: 0 0.5rem 0 0; /* Adjusted margin */
    color: #2E96CA;
    font-size: 1.4rem;
}

.copyright {
    margin-top: 2.5rem;
    font-size: .9rem;
    color: #555;
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 1.5rem;
}

/* Responsive Media Queries - Focused on mobile optimization */
@media(max-width: 992px) {
    .footer-container {
        justify-content: flex-start;
    }
    .footer-container > div {
        width: 45%; 
    }
    .footer-container > div:first-child {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    .footer-socials {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    .footer-links {
        justify-content: center; /* Center links on medium screens */
    }
    /* Fix alignment for columns on medium screens */
    .footer-container > div:nth-child(2),
    .footer-container > div:nth-child(3) {
        text-align: center;
    }
}


@media(max-width: 768px) {
    /* Header Navigation - Keep your existing logic for the hamburger menu */
    nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        right: 20px;
        padding: 1rem 2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Footer - Ensures full stacking on smaller tablets/large phones */
    .footer-container > div {
        width: 100%;
        text-align: center;
    }
    .footer-links {
        align-items: center;
    }
    .footer-socials {
        text-align: center;
    }
}

@media(max-width: 576px) {
    /* General Mobile Padding */
    .container {
        padding: 0 0.5rem; /* Even smaller padding for very small devices */
    }
    section {
        padding: 3rem 0.5rem; /* Even smaller section padding */
    }
    
    /* Hero Section - Further size reduction */
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .hero .btn {
        display: block; /* Make buttons stack vertically on very small screens */
        margin: 0.5rem auto;
        width: 80%;
    }

    /* About Section */
    .icon-list {
        gap: 1rem;
    }
    .icon-list div {
        max-width: 100%; /* Stacks all 3 vertically */
    }

    /* Contact Section */
    .socials {
        flex-wrap: wrap; /* Allows social icons to wrap if space is too tight */
        gap: 1rem;
    }
}
