/* ============================================
   MAIN STYLE - BKK SMK Cendekia Madina
   ============================================ */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --secondary: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}
.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-job {
    border-left: 4px solid var(--primary);
}

.card-event {
    border-left: 4px solid var(--secondary);
}

.card-announcement {
    border-left: 4px solid var(--success);
}

.card-testimonial {
    background: var(--gray-900);
    color: white;
    border-radius: var(--radius);
    padding: 30px;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--gray-900);
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-menu a {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.navbar-menu a:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.navbar-menu .btn-login {
    background: var(--primary);
    color: white;
}
.navbar-menu .btn-login:hover {
    background: var(--primary-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text h1 .highlight {
    color: var(--secondary);
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.hero-stat .number {
    font-size: 28px;
    font-weight: 700;
}

.hero-stat .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-section {
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.search-box {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-xl);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box input,
.search-box select {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box .btn-search {
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-box .btn-search:hover {
    background: var(--primary-dark);
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.section-header .subtitle {
    color: var(--gray-500);
    font-size: 14px;
}

.section-header .see-all {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-header .see-all:hover {
    color: var(--primary-dark);
}

/* ============================================
   JOB CARDS
   ============================================ */

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.job-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.job-card .company {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.job-card .company-logo {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.job-card .company-name {
    font-weight: 600;
    color: var(--gray-700);
}

.job-card .job-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.job-card .job-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 12px;
}

.job-card .job-meta i {
    margin-right: 4px;
}

.job-card .job-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.job-card .job-tag {
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-600);
}

.job-card .job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.job-card .salary {
    font-weight: 700;
    color: var(--primary);
}

.job-card .posted {
    color: var(--gray-400);
    font-size: 12px;
}

/* ============================================
   EVENTS
   ============================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.event-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-card .event-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.event-card .event-body {
    padding: 20px;
}

.event-card .event-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

.event-card .event-title {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0;
}

.event-card .event-location {
    color: var(--gray-500);
    font-size: 14px;
}

.event-card .event-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   ANNOUNCEMENTS
   ============================================ */

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-item {
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
}

.announcement-item:hover {
    box-shadow: var(--shadow-md);
}

.announcement-item .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.announcement-item .icon.important {
    background: #FEE2E2;
    color: var(--danger);
}

.announcement-item .icon.info {
    background: var(--primary-light);
    color: var(--primary);
}

.announcement-item .icon.job {
    background: #D1FAE5;
    color: var(--success);
}

.announcement-item .content {
    flex: 1;
}

.announcement-item .content .title {
    font-weight: 600;
    margin-bottom: 4px;
}

.announcement-item .content .summary {
    color: var(--gray-500);
    font-size: 14px;
}

.announcement-item .content .meta {
    color: var(--gray-400);
    font-size: 12px;
    margin-top: 8px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card .quote {
    font-size: 32px;
    color: var(--gray-200);
    margin-bottom: 8px;
}

.testimonial-card .text {
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.7;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.testimonial-card .author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author .name {
    font-weight: 600;
}

.testimonial-card .author .title {
    color: var(--gray-500);
    font-size: 13px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.footer p {
    color: var(--gray-400);
    line-height: 1.7;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer ul li a:hover {
    color: white;
}

.footer .social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer .social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer .social a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE - TAMBAHAN
   ============================================ */

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        box-shadow: var(--shadow-lg);
    }
    
    .hero {
        padding: 40px 0;
        border-radius: 0 0 20px 20px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input,
    .search-box select {
        min-width: 100%;
    }
    
    .jobs-grid,
    .events-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-stat .number {
        font-size: 20px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .card {
        padding: 16px;
    }
}