@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-color: #59a632;
    --primary-hover: #458325;
    --primary-light: #e9f5e1;
    --primary-mid: #9cd478;
    --secondary-green: #c4e9ad;
    --text-dark: #2a2a2a;
    --text-muted: #757575;
    --bg-main: #ffffff;
    --bg-footer: #1e152a;
    --accent-orange: #ff9800;
    --accent-red: #ff4757;
    --white: #ffffff;
    --border-color: #e8e8e8;
    
    /* Variables */
    --font-main: 'Outfit', sans-serif;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 166, 50, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #e68a00;
}

/* --- Header / Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.location-badge i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 24px 100px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,1) 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-title span {
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary-mid);
    opacity: 0.4;
    z-index: -1;
    border-radius: 4px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.search-box {
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-full);
    display: flex;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.search-box input {
    border: none;
    padding: 12px 24px;
    flex-grow: 1;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
}

.search-box .btn-search {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-box .btn-search:hover {
    background: #e68a00;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image .shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-color: #ffda79;
    border-radius: 40px;
    z-index: 1;
    transform: translate(-45%, -55%) rotate(-10deg);
}

.hero-image img {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-height: 550px;
}

.red-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--accent-red);
    border-radius: 50%;
    top: 60%;
    left: 5%;
}

/* --- Features Cards --- */
.features-section {
    padding: 60px 24px;
    background: white;
    position: relative;
    margin-top: -60px;
    z-index: 10;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Top Institutes --- */
.institutes-section {
    padding: 80px 24px;
    background: var(--bg-main);
    text-align: center;
}

.institutes-grid {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.institute-logo {
    width: 180px;
    height: 100px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.institute-logo:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.institute-logo img {
    max-height: 100%;
    opacity: 0.8;
    transition: var(--transition);
    filter: grayscale(100%);
}

.institute-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- Join Community --- */
.community-section {
    padding: 80px 24px;
    background: var(--bg-main);
}

.community-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.community-list {
    margin-top: 30px;
}

.community-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.community-item-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.community-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.community-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.community-image {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    padding: 20px;
    background: var(--primary-light);
}

.community-image img {
    border-radius: 50%;
}

/* --- Steps Section --- */
.steps-section {
    padding: 100px 24px;
    background-color: var(--secondary-green);
    text-align: center;
}

.steps-container {
    max-width: 1000px;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-item {
    width: 150px;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    border: 4px solid var(--secondary-green);
    transition: var(--transition);
}

.step-item:hover .step-icon {
    transform: scale(1.1);
    border-color: var(--white);
}

.step-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-footer);
    color: #fff;
    padding: 80px 24px 20px;
}

.newsletter-box {
    background: var(--bg-footer);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 900px;
    margin: -140px auto 60px;
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.newsletter-text h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.newsletter-text p {
    color: #aaa;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    background: #fff;
    padding: 6px;
    border-radius: var(--radius-full);
    width: 400px;
}

.newsletter-form input {
    border: none;
    padding: 10px 20px;
    flex-grow: 1;
    border-radius: var(--radius-full);
    outline: none;
    font-family: var(--font-main);
}

.newsletter-form button {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Developer credit — visible in every public footer */
.footer-dev-credit {
    margin-top: 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-bottom .footer-dev-credit strong {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .community-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-image {
        margin-top: 40px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .newsletter-content {
        flex-direction: column;
    }
    .newsletter-form {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile refinements (≤768px): see assets/css/mobile-768.css */
