/* ================================================================
1. CORE & VARIABLES 
================================================================
*/
:root {
    --navy: #1a237e; 
    --gold: #ffc107; 
    --light: #f8f9fa;
    --dark: #0f172a; 
    --white: #ffffff; 
    --slate: #64748b;
    --blue: #0066cc; /* Consistent blue for news/gallery */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

html { scroll-behavior: smooth; }

body { 
    color: #334155; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ================================================================
2. LAYOUT & REUSABLES 
================================================================
*/
.container { max-width: 1200px; margin: auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }
.text-white { color: white; }
.grid-2, .grid-3 { 
    display: grid; 
    gap: 30px; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}
.section-header-center { text-align: center; margin-bottom: 50px; }

/* ================================================================
3. NAVIGATION 
================================================================
*/
.navbar { 
    background: white; 
    padding: 12px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.1); 
}

.nav-box { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 50px; }
.logo .moga { font-weight: 800; color: var(--navy); display: block; font-size: 1.1rem; }
.logo .loc { font-size: 0.7rem; color: var(--slate); letter-spacing: 2px; font-weight: 600; }

.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-links a { color: #1e293b; font-weight: 600; font-size: 0.85rem; }
.nav-links i { margin-right: 5px; color: var(--navy); }
.nav-links a:hover { color: var(--gold); }

.btn-ppdb { 
    background: var(--gold); 
    color: var(--navy) !important; 
    padding: 10px 22px; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(255,193,7,0.3); 
}

/* ================================================================
4. HERO PREMIUM 
================================================================
*/
.hero-premium { 
    min-height: 90vh; 
    background: #0d1242; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    color: white; 
}

.shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 1; }
.s1 { width: 400px; height: 400px; background: rgba(26,35,126,0.6); top: -100px; right: -50px; }
.s2 { width: 300px; height: 300px; background: rgba(255,193,7,0.2); bottom: -50px; left: -50px; }

.hero-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; z-index: 5; }

.hero-label { 
    background: rgba(255,255,255,0.1); 
    padding: 8px 18px; 
    border-radius: 50px; 
    display: inline-block; 
    font-size: 0.8rem; 
    color: var(--gold); 
    border: 1px solid rgba(255,255,255,0.2); 
    margin-bottom: 20px; 
}

.hero-content-new h1 { font-size: 3.8rem; line-height: 1.1; font-weight: 800; }
.text-glow { color: var(--gold); text-shadow: 0 0 20px rgba(255,193,7,0.5); }

.hero-action-btns { margin-top: 30px; display: flex; gap: 15px; }
.btn-glow, .btn-glass { padding: 16px 32px; border-radius: 12px; font-weight: 700; }
.btn-glow { background: var(--gold); color: var(--navy); box-shadow: 0 10px 25px rgba(255,193,7,0.4); }
.btn-glass { border: 1px solid rgba(255,255,255,0.3); color: white; backdrop-filter: blur(10px); }

.glass-box { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); position: relative; }

.floating-stats { 
    position: absolute; 
    bottom: 20px; 
    left: -20px; 
    background: white; 
    color: var(--navy); 
    padding: 12px 20px; 
    border-radius: 15px; 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

/* Teknik menjaga rasio video 16:9 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Rasio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-badge {
    position: absolute;
    bottom: -15px;
    right: 30px;
    background: #FF0000; /* Warna YouTube */
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
    z-index: 2;
}

/* Responsif Mobile */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr; /* Stack vertikal di HP */
        text-align: center;
    }
    
    .hero-content-new {
        order: 1;
    }
    
    .hero-video-v2 {
        order: 2;
        width: 100%;
    }
}

/* ================================================================
5. CARDS SYSTEM (General, News, Faculty)
================================================================
*/
.visi-box, .misi-box, .jurusan-card, .unggulan-card, .news-card, .pres-photo-card { 
    background: white; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: 0.3s; 
}

.visi-box, .misi-box, .unggulan-card { padding: 35px; }

.unggulan-icon { 
    width: 70px; height: 70px; 
    background: var(--light); color: var(--navy); 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.8rem; border-radius: 50%; margin: 0 auto 20px; 
    transition: 0.3s; 
}
.unggulan-card:hover .unggulan-icon { background: var(--gold); }

.jurusan-img img { width: 100%; height: 220px; object-fit: cover; }
.jurusan-info { padding: 25px; }

/* --- News Specific --- */
.news-card { border: 1px solid #f0f0f0; }
.news-img-container { position: relative; height: 200px; overflow: hidden; }
.news-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.news-date-badge { 
    position: absolute; bottom: 15px; left: 15px; 
    background: var(--blue); color: #fff; padding: 8px 12px; 
    border-radius: 10px; text-align: center; line-height: 1; 
    box-shadow: 0 5px 15px rgba(0,102,204,0.3); 
}
.news-date-badge .day { display: block; font-size: 1.2rem; font-weight: 800; }
.news-date-badge .month { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }

.news-txt { padding: 25px; }
.news-meta { display: flex; gap: 15px; font-size: 0.8rem; color: #94a3b8; margin-bottom: 12px; }
.news-txt h4 { 
    font-size: 1.1rem; color: #1e293b; margin-bottom: 20px; 
    line-height: 1.5; height: 3.3em; overflow: hidden; 
}

.btn-read-more { 
    color: var(--blue); font-weight: 700; font-size: 0.9rem; 
    display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; 
}

.news-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.news-card:hover img { transform: scale(1.1); }
.news-card:hover .btn-read-more { gap: 15px; color: var(--gold); }

/* ================================================================
6. FASILITAS BENTO 
================================================================
*/
.fasilitas-bento { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    grid-template-rows: repeat(2, 200px); 
    gap: 15px; 
}

.bento-item { position: relative; overflow: hidden; border-radius: 15px; }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

.bento-overlay { 
    position: absolute; bottom: 0; width: 100%; 
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); 
    padding: 20px; color: white; 
}
.bento-overlay h3 { color: var(--gold); font-size: 1.1rem; }

.item-large { grid-column: span 2; grid-row: span 2; }
.bento-item:hover img { transform: scale(1.1); }

/* ================================================================
7. PRESTASI & MITRA 
================================================================
*/
.pres-photo-card { position: relative; height: 350px; }
.pres-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.pres-label { 
    position: absolute; bottom: 0; width: 100%; padding: 25px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: white; 
}

/* --- Mitra Industri --- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    padding-top: 30px;
    justify-items: center;
}

.mitra-card { width: 100%; text-align: center; transition: all 0.3s ease; }

.mitra-wrapper {
    background: #fff; padding: 20px; border-radius: 15px;
    height: 110px; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid #f1f5f9;
    margin-bottom: 12px; filter: grayscale(100%); opacity: 0.8; transition: all 0.3s ease;
}

.mitra-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }

.mitra-name {
    font-size: 0.85rem; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s ease;
}

.mitra-card:hover .mitra-wrapper {
    filter: grayscale(0%); opacity: 1; transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,102,204,0.1); border-color: var(--blue);
}
.mitra-card:hover .mitra-name { color: var(--blue); }

/* ================================================================
8. GALERI SEKOLAH & LIGHTBOX 
================================================================
*/
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.galeri-item {
    position: relative; display: block; height: 250px;
    border-radius: 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.galeri-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 102, 204, 0.8); display: flex;
    align-items: center; justify-content: center; opacity: 0;
    transition: all 0.3s ease; color: white;
}

.overlay-content { text-align: center; transform: translateY(20px); transition: all 0.3s ease; }
.overlay-content i { font-size: 2rem; margin-bottom: 10px; display: block; }

.galeri-item:hover img { transform: scale(1.1); }
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-item:hover .overlay-content { transform: translateY(0); }

/* --- Lightbox --- */
.lightbox {
    display: none; position: fixed; z-index: 9999; 
    padding-top: 100px; left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto; display: block; width: 80%; max-width: 800px;
    border-radius: 10px; animation: zoom 0.3s;
}

@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

.close-lightbox {
    position: absolute; top: 50px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; cursor: pointer;
}

#caption { margin: auto; display: block; width: 80%; text-align: center; color: #ccc; padding: 10px 0; }

/* ================================================================
9. KONTAK & FOOTER 
================================================================
*/
.contact-cards-container { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; margin-top: 40px; 
}

.c-card { 
    background: rgba(255,255,255,0.05); padding: 25px; border-radius: 15px; 
    display: flex; gap: 20px; color: white; border: 1px solid rgba(255,255,255,0.1); 
}
.c-card i { font-size: 1.8rem; color: var(--gold); }
.c-card span { color: var(--gold); font-size: 0.8rem; font-weight: 700; }

/* --- Footer Premium --- */
.footer-premium { background: #0f172a; color: #cbd5e1; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }

.footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.footer-logo img { height: 60px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
.footer-logo .logo-txt { display: flex; flex-direction: column; }
.footer-logo .moga { color: #fff; font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.footer-logo .loc { color: var(--gold); font-weight: 700; letter-spacing: 2px; font-size: 0.9rem; }

.footer-desc { line-height: 1.7; font-size: 0.95rem; margin-bottom: 25px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 42px; height: 42px; background: rgba(255, 255, 255, 0.08);
    display: flex; align-items: center; justify-content: center; border-radius: 12px;
    color: #fff; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-size: 1.1rem;
}

/* Sosmed Branding Colors */
.social-links a.fb:hover { background: #1877F2; box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3); transform: translateY(-5px); }
.social-links a.ig:hover { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); 
    box-shadow: 0 10px 20px rgba(214, 36, 159, 0.3); transform: translateY(-5px); 
}
.social-links a.yt:hover { background: #FF0000; box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3); transform: translateY(-5px); }
.social-links a.tk:hover { background: #000; box-shadow: 2px 2px 0px #fe2c55, -2px -2px 0px #25f4ee; transform: translateY(-5px); }
.social-links a:hover i { animation: bounceIcon 0.3s ease-in-out; }

@keyframes bounceIcon { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1.1); } }

.footer-col h3 { 
    color: #fff; font-size: 1.2rem; font-weight: 700; 
    margin-bottom: 30px; position: relative; padding-bottom: 10px; 
}
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--gold); }

.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #cbd5e1; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--gold); transform: translateX(5px); }

.contact-info li { display: flex; gap: 15px; margin-bottom: 20px; font-size: 0.95rem; }
.contact-info i { color: var(--gold); margin-top: 5px; }

.footer-bottom { background: #020617; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.flex-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.footer-dev a { color: var(--gold); font-weight: 700; }

/* ================================================================
10. UTILITIES & ANIMATION 
================================================================
*/
.underline-box { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 15px 0; }
.line { width: 60px; height: 4px; background: var(--gold); border-radius: 5px; }
.accent-star { animation: pulse 2s infinite; color: var(--gold); }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } }

.title-modern { font-size: 2.5rem; color: var(--navy); font-weight: 800; }

/* ================================================================
11. RESPONSIVE DESIGN (Media Queries)
================================================================
*/
.menu-btn { display: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; }

@media (max-width: 992px) {
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-action-btns { justify-content: center; }
    .hero-content-new h1 { font-size: 2.8rem; }
    .floating-stats { left: 50%; transform: translateX(-50%); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 20px; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
    }
    .nav-links.active { display: flex; }
    .menu-btn { display: block; }
    .fasilitas-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .item-large { grid-column: span 2; height: 250px; }
    .title-modern { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .flex-bottom { flex-direction: column; text-align: center; gap: 15px; }
}

@media (max-width: 600px) {
    .galeri-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .galeri-item { height: 150px; }
}

@media (max-width: 480px) {
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* CONTACT GRID SYSTEM */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.contact-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-icon-box {
    width: 70px;
    height: 70px;
    background: var(--light);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: 0.3s;
}

/* Warna Spesifik Ikon */
.contact-icon-box.whatsapp { color: #25D366; background: rgba(37, 211, 102, 0.1); }
.contact-icon-box.email { color: #EA4335; background: rgba(234, 67, 53, 0.1); }
.contact-icon-box.phone { color: #0066cc; background: rgba(0, 102, 204, 0.1); }

.contact-info h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 800;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--slate);
    margin-bottom: 20px;
    line-height: 1.4;
}

.contact-action {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

/* HOVER EFFECTS */
.contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    border-color: var(--blue);
}

.contact-card:hover .contact-icon-box {
    transform: scale(1.1) rotate(10deg);
}

.contact-card:hover .contact-action {
    gap: 15px;
    color: var(--gold);
}

/* Responsif untuk HP */
@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 20px;
    }
}