/* Basic Resets & Global Styles for eduPAL Basic */
:root {
    --pi-color-primary-dark: #2C3E50;
    /* Darker Blue-Gray */
    --pi-color-accent-blue: #3498DB;
    /* Vibrant Blue */
    --pi-color-light-gray: #ECF0F1;
    --pi-color-white: #FFFFFF;
    --pi-color-text-light: #7F8C8D;
    /* Medium Gray for secondary text */
    --pi-color-text-dark: #34495E;
    /* Darker Blue-Gray for main text */
    font-size: 16px;
    /* Base font size for rem calculations */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--pi-color-text-dark);
    background-color: var(--pi-color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 75rem;
    /* 1200px / 16px */
    margin: 0 auto;
    padding: 0 1.25rem;
    /* 20px / 16px */
}

a {
    color: var(--pi-color-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pi-color-primary-dark);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5625rem;
    border-radius: 0.3125rem;
    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(--pi-color-accent-blue);
    color: var(--pi-color-white);
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #2980B9;
    transform: translateY(-0.125rem);
    color: var(--pi-color-white);
    box-shadow: 0 0 20px var(#2980B9);
}

.btn-secondary {
    background-color: var(--pi-color-primary-dark);
    color: var(--pi-color-white);
    font-size: 0.9em;
    padding: 0.5rem 0.9375rem;
}

.btn-secondary:hover {
    color: var(--pi-color-white);
    background-color: #1F2C3A;
    transform: translateY(-0.0625rem);
}



/* =============================================================================
================= HEADER ================================================================= */
.main-header {
    background-color: var(--pi-color-white);
    padding: 0.9375rem 0;
    border-bottom: 0.0625rem solid var(--pi-color-light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 2.7rem;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 1.875rem;
    position: relative;
}

.main-nav a {
    font-weight: 600;
    font-size: 1.05em;
    color: var(--pi-color-primary-dark);
    padding: 0.5rem 0;
    display: block;
}


.main-nav a:hover,
.main-nav a.active {
    color: var(--pi-color-accent-blue);
}



/* =========================== DROPDOWN SPECIFIC STYLES ========================= */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--pi-color-white);
    min-width: 12rem;
    box-shadow: 0rem 0.5rem 1rem 0rem rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0.3125rem;
    top: 100%;
    left: 0;
    padding: 0.625rem 0;
}

.dropdown-content a {
    color: var(--pi-color-primary-dark);
    padding: 0.75rem 1rem;
    text-decoration: none;
    text-align: left;
    font-weight: 400;
    font-size: 0.95em;
}


.dropdown-content a:hover {
    background-color: var(--pi-color-light-gray);
    color: var(--pi-color-accent-blue);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ================ DROPDOWN ARROW ================ */
.dropdown>a::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.8em;
    vertical-align: middle;
    transition: transform 0.2s ease;
}


.dropdown:hover>a::after {
    transform: rotate(180deg);
}


.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 1.5625rem;
    height: 0.1875rem;
    background-color: var(--pi-color-primary-dark);
    margin: 0.3125rem 0;
    transition: all 0.3s ease;
}




/* ==================== HUMBURGER ============ */
.nav-toggle.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-0.3125rem, 0.375rem);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(45deg) translate(-0.3125rem, -0.375rem);
}







/* ====================================================================================
=========================== HERO SECTION ============================================== */
.hero-section {
    /* background-color: var(--pi-color-accent-blue); */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(./img/hero.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    color: var(--pi-color-white);
    text-align: center;
    padding: 5rem 1.25rem;
    min-height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 0.9375rem;
    line-height: 1.2;
    color: var(--pi-color-light-gray);
    text-shadow: 2px 2px 2px black;
    max-width: 50rem;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 1.875rem;
    max-width: 43.75rem;
    text-align: center;
    place-content: center;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    margin: 0 auto;
}



/* ==================================================================================
============ CONTENT SECTIONS ================================= */
.content-sections-wrapper {
    padding: 3.75rem 0;
    background-color: var(--pi-color-light-gray);
}

.content-section {
    background-color: var(--pi-color-white);
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.content-section:last-of-type {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 2em;
    color: var(--pi-color-primary-dark);
    margin-bottom: 1.5625rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.625rem;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 3.75rem;
    height: 0.1875rem;
    background-color: var(--pi-color-accent-blue);
    margin: 0.625rem auto 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.875rem;
    margin-top: 1.875rem;
}

.content-card {
    background-color: var(--pi-color-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.content-card h3 {
    font-size: 1.3em;
    margin-bottom: 0.625rem;
    color: var(--pi-color-primary-dark);
}

.content-card p {
    font-size: 0.95em;
    color: var(--pi-color-text-light);
    margin-bottom: 1.25rem;
}

.content-card .icon {
    font-size: 3.5rem;
    color: var(--pi-color-accent-blue);
    margin-bottom: 1rem;
}



/* ============================================================
================== FOOTER =========================== */
/* =======================================================================================
============================================================
============ 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 */
}

/* hover:scale-105 */

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    /* text-lg */
    font-weight: 600;
    /* font-semibold */
    color: #ffffff;
    /* text-white */
    margin-bottom: 1rem;
    /* mb-4 */
    border-bottom: 2px solid #3b82f6;
    /* border-b-2 border-blue-500 */
    padding-bottom: 0.25rem;
    /* pb-1 */
}


/* 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 */
}














/* ====================================================================================================
=======================================================================
======================== RESPONSIVENESS =================================================
================================================================================== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--pi-color-white);
        position: absolute;
        top: 4.375rem;
        left: 0;
        padding-bottom: 0.625rem;
        box-shadow: 0 0.3125rem 0.625rem 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: 0.0625rem solid var(--pi-color-light-gray);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 0.9375rem 1.25rem;
        text-align: center;
        width: 100%;
    }


    /* =================== MOBILE DROPDOWNS ================== */
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background-color: var(--pi-color-light-gray);
        width: 100%;
    }

    .dropdown-content a {
        padding-left: 2.5rem;
        text-align: center;
        border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown>a::after {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .nav-toggle {
        display: block;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.6em;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .main-footer .footer-links a {
        display: block;
        margin: 0.625rem 0;
    }
}