/* ================= MAIN STYLES ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= HERO SECTION ================= */
.hero-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #8b5cf6 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" opacity="0.1"><path d="M0 0h1200v600H0z" fill="none"/><circle cx="300" cy="150" r="80" fill="white"/><circle cx="900" cy="300" r="120" fill="white"/><circle cx="600" cy="450" r="100" fill="white"/></svg>');
    background-size: cover;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 540px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: white;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
    background: #f8fafc;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
    display: flex;
    gap: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: perspective(800px) rotateY(-5deg);
    transition: transform 0.4s ease;
}

.main-image:hover {
    transform: perspective(800px) rotateY(0deg);
}

.floating-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #10b981;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ================= SECTION COMMON ================= */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ================= CATEGORIES ================= */
.categories {
    padding: 80px 0;
    background: #f8fafc;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 15px;
}

.category-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
    border-color: #c7d2fe;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 26px;
    color: #4f46e5;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
}

.category-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
    min-height: 40px;
}

.category-meta {
    display: flex;
    gap: 15px;
    justify-content: center;
    font-size: 0.85rem;
    color: #4f46e5;
    font-weight: 500;
}

.category-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ================= OBJECTIVES ================= */
.objectives-section {
    padding: 80px 0;
    background: #fff;
}

.objectives-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.objective-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    align-items: flex-start;
}

.objective-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background: #fff;
    border-color: #c7d2fe;
}

.objective-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.objective-icon i {
    font-size: 24px;
    color: white;
}

.objective-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.objective-content p {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ================= RESOURCES ================= */
.resources-section {
    padding: 80px 0;
    background: #f8fafc;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.resource-card {
    background: #fff;
    padding: 32px 25px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(79, 70, 229, 0.12);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card > * {
    position: relative;
    z-index: 1;
}

.resource-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
    background: rgba(255, 255, 255, 0.2);
}

.resource-icon i {
    font-size: 26px;
    color: #4f46e5;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-icon i {
    color: white;
}

.resource-content {
    flex: 1;
}

.resource-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    transition: color 0.3s ease;
}

.resource-card:hover .resource-content h3 {
    color: white;
}

.resource-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
    transition: color 0.3s ease;
}

.resource-card:hover .resource-content p {
    color: rgba(255, 255, 255, 0.9);
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-link {
    color: white;
}

/* ================= STUDY MATERIAL ================= */
.study-material-section {
    padding: 80px 0;
    background: #fff;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.material-card {
    background: #fff;
    padding: 24px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.1);
    border-color: #c7d2fe;
}

.material-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.material-icon i {
    font-size: 22px;
    color: #4f46e5;
}

.material-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
    line-height: 1.3;
}

.material-card p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.material-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #e0e7ff;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .material-grid {
        grid-template-columns: repeat(4, minmax(200px, 1fr));
        gap: 18px;
    }
    
    .material-card {
        padding: 22px 16px;
    }
}

@media (max-width: 992px) {
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .material-card {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .material-card {
        padding: 22px 18px;
    }
}

@media (max-width: 576px) {
    .material-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .material-card {
        padding: 25px 20px;
    }
}

/* ================= CTA SECTION ================= */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    margin-bottom: 0;          /* 🔥 white gap stop */
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA SECTION BUTTON ONLY */
.cta-section .btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .category-grid,
    .objectives-content,
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .category-grid,
    .objectives-content,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .objective-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .objective-icon {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .categories,
    .objectives-section,
    .resources-section,
    .study-material-section {
        padding: 60px 0;
    }
    
    .category-grid,
    .objectives-content,
    .resources-grid,
    .material-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .stat {
        align-items: center;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .category-card,
    .resource-card,
    .material-card,
    .objective-card {
        padding: 22px 18px;
    }
    
    .floating-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}