/* Basic Resets & Global Styles */
:root {
    --color-primary-dark: #1A2C3D;
    /* Deep Blue */
    --color-accent-green: #4CAF50;
    /* Vibrant Green */
    --color-light-gray: #F3F4F6;
    --color-white: #FFFFFF;
    --color-secondary-blue: #3366CC;
    /* Medium Blue */
    --color-text-light: #6B7280;
    /* Darker Gray for secondary text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-primary-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-green);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent-green);
    color: var(--color-white);
}

.btn-primary:hover {
    color: var(--color-primary-dark);
    background-color: #388E3C;
    /* Slightly darker green */
    transform: scale(1.02);
}

.btn-secondary {
    background-color: var(--color-secondary-blue);
    color: var(--color-white);
    font-size: 0.9em;
    padding: 8px 15px;
}

.btn-secondary:hover {
    background-color: #2854A3;
    /* Slightly darker blue */
    transform: translateY(-1px);
}

/* Header */
.main-header {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 1.05em;
    color: var(--color-primary-dark);
}

.active-link {
    color: var(--color-secondary-blue);
}

.nav-link:hover {
    color: var(--color-secondary-blue);
}


.nav-toggle {
    /* For mobile hamburger menu, hidden on desktop */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}


/* Hero Section */
.hero-section {
    background-color: var(--color-light-gray);
    /* Light background for contrast */
    text-align: center;
    padding: 80px 20px;
    /* Adjust padding to control 'half-page' height */
    min-height: 50vh;
    /* Targets roughly half the viewport height, min-height for content flexibility */
    display: flex;
    /* For vertical centering of content */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-section h1 {
    font-size: 2.8em;
    color: var(--color-primary-dark);
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 800px;
}

.hero-section p {
    font-size: 1.2em;
    color: var(--color-text-light);
    margin-bottom: 30px;
    max-width: 700px;
}



/* ===================================================
=============== PARTNERS ==================================== */
.partner-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.partner-img img {
    max-width: 200px;

    max-height: 70px;
}

.partners {
    margin: 0 0 30px 0;
}



/* Categories Dropdown */
.categories-section {
    padding: 40px 20px;
    background-color: var(--color-white);
    text-align: center;
}

.category-dropdown-wrapper {
    position: relative;
    display: inline-block;
    min-width: 280px;
    /* Increased min-width for better appearance */
    width: 100%;
    /* Allows it to expand on smaller screens */
    max-width: 400px;
    /* Max width for larger screens */
}

#course-category {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--color-light-gray);
    box-shadow: 0 0 2px var(--color-primary-dark);
    border-radius: 5px;
    background-color: var(--color-white);
    font-size: 1.05em;
    color: var(--color-primary-dark);
    appearance: none;
    /* Removes default dropdown arrow */
    /* Custom arrow using SVG data URI */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%231A2C3D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    cursor: pointer;
}

#course-category:focus {
    outline: none;
    /*border-color: var(--color-secondary-blue);*/
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.2);
}

.sr-only {
    /* Screen reader only text */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Course Lists Section */
.course-lists-section {
    padding: 60px 20px;
    background-color: var(--color-light-gray);
    /* Alternating background */
}

.course-lists-section:nth-of-type(even) {
    background-color: var(--color-white);
    /* For alternating sections */
}

.section-title {
    font-size: 2em;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-green);
    margin: 10px auto 0;
}

.course-grid {
    display: grid;
    /* This will try to fit as many columns as possible, each at least 300px wide */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.course-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.course-card img {
    width: 100%;
    height: 180px;
    /* Consistent height for images */
    object-fit: cover;
    border-bottom: 1px solid var(--color-light-gray);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Allows content to take up available space */
}

.course-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

.course-card .platform-name {
    font-size: 0.9em;
    color: var(--color-secondary-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.course-info {
    font-size: 0.85em;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.course-card .short-desc {
    font-size: 0.95em;
    color: var(--color-text-light);
    margin-bottom: 15px;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.course-card .rating {
    color: #FFC107;
    /* Gold for stars */
    font-size: 1.1em;
    margin-bottom: 15px;
}



/* =======================================================================================
============================================================
============ FOOTER ========================================================
============================================================== */
.footer-section {
    background: linear-gradient(to right, #1a202c, #122c46);
    /* Dark blue-grey to dark red-brown gradient */
    color: #d1d5db;
    /* text-gray-300 */
    padding-top: 3rem;
    /* py-12 */
    padding-bottom: 3rem;
    border-radius: 100px 0 0 0;
}

.footer-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: left;
}


.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: top;
}

@media (min-width: 768px) {

    /* md breakpoint */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) {

    /* lg breakpoint */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        /* lg:grid-cols-4 */
    }
}

/* Column styles */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 270px;
    text-align: left;
    max-width: 400px;
}


@media (min-width: 768px) {

    /* md breakpoint */
    .footer-column {
        align-items: flex-start;
        /* md:items-start */
        text-align: left;
        /* md:text-left */
    }
}

.footer-logo {
    width: 200px;
}


.footer-description {
    font-size: 1rem;
    /* text-sm */
    margin-bottom: 1rem;
    /* mb-4 */
    max-width: 350px;
    /* max-w-xs */
}

footer h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.25rem;
}


/* Links Section */
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    /* space-y-2 (approx) */
}

.links-list li {
    margin-bottom: 0.5rem;
    /* Adjust as needed for spacing */
}

.links-list a {
    font-size: 1rem;
    /* text-sm */
    color: #d1d5db;
    /* default text color */
    transition: color 0.2s ease-in-out;
    /* transition duration-200 */
}

.links-list a:hover {
    color: #60a5fa;
    /* hover:text-blue-400 */
}


.android-wrapper {
    display: flex;
    flex-direction: column;

}

.android-wrapper a {
    margin: 5px 0;
    font-size: 20px;
    color: #fff;
    transition: .3s ease-in-out;
}

.android-wrapper a:hover {
    color: #1d4ed8;
}

.android {
    width: 200px;
    height: fit-content;
}

/* Social Media Icons */
.social-icons-container {
    display: flex;
    gap: 1rem;
    /* space-x-4 */
}

.social-icon {
    width: 2.5rem;
    /* w-10 */
    height: 2.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    /* bg-gray-700 */
    color: #1a202c;
    /* text-white */
    border-radius: 9999px;
    /* rounded-full */
    transition: all 0.3s ease-in-out;
    /* transition duration-300 ease-in-out */
}

.social-icon:hover {
    transform: scale(1.1);
    /* hover:scale-110 */
}

.social-icon.facebook:hover {
    background-color: #2563eb;
    /* hover:bg-blue-600 */
}

.social-icon.whatsapp:hover {
    background-color: #16a34a;
    /* hover:bg-green-600 */
}

.social-icon.twitter:hover {
    background-color: #60a5fa;
    /* hover:bg-blue-400 */
}

.social-icon.pinterest:hover {
    background-color: #dc2626;
    /* hover:bg-red-600 */
}

.footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer-text p {
    font-size: 15px;
    color: #838e9e;
    text-align: center;
    margin: 5px 0;
}

.quick-links {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.quick-links a {
    font-size: 20px;
    font-weight: 600;
    color: #7e7e80;
    width: 200px;
    transition: .3s ease-in-out;
    border-left: 1px solid #7e7e80;
    border-right: 1px solid #7e7e80;
    text-align: center;
}

.quick-links a:hover {
    color: #1d4ed8;
}


/* Copyright Section */
.copyright-section {
    border-top: 1px solid #4b5563;
    /* border-t border-gray-700 */
    margin-top: 1rem;
    /* mt-12 */
    padding-top: 2rem;
    /* pt-8 */
    text-align: center;
    color: #7e7e80;
    /* text-gray-500 */
    font-size: 1rem;
    /* text-sm */
}






















/* ====================================================================
================ SMALL SCREENS ============================================ */
@media (max-width: 900px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-white);
        position: absolute;
        top: 70px;
        left: 0;
        padding-bottom: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav li {
        margin: 0;
        border-bottom: 1px solid var(--color-light-gray);
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        width: 100%;
    }

    .nav-toggle {
        display: block;
    }

    .hero-section {
        min-height: 60vh;
        padding: 60px 20px;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.6em;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .main-footer .footer-links a {
        display: block;
        margin: 10px 0;
    }

    .logo {
        width: 180px;

    }
}





/* ================= HUMBURGER ANIMATION ================== */
.nav-toggle.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}



.logo {
    /* max-width: 300px; */

    max-height: 50px;
}