/* CSS ARCHITECTURE DEFINITIONS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0b1d33; /* Corporate Luxury Deep Navy */
    --secondary-color: #c59b27; /* Rich Gold Amber Accent */
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --light-bg: #f4f6f8;
    --white: #ffffff;
    --gold: #c59b27;
    --green: #2ecc71;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* CONTAINER APP */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* BUTTON SYSTEMS */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #b0871e;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* SECTION GLOBAL HEADERS */
.section-tag {
    display: inline-block;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.text-white { color: var(--white) !important; }
.text-gold { color: var(--secondary-color) !important; }
.text-green { color: var(--green) !important; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 1.05rem;
}

/* ADVERTISEMENT FIRST VISIT POPUP */
.ad-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(11, 29, 51, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ad-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ad-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-top: 6px solid var(--secondary-color);
}

.ad-close-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    font-size: 2rem; color: var(--text-muted);
    cursor: pointer;
}

.ad-badge {
    background-color: rgba(197, 155, 39, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ad-box h3 { font-size: 1.6rem; margin-bottom: 15px; line-height: 1.3; }
.ad-box p { color: var(--text-dark); margin-bottom: 20px; font-size: 1rem; }
.ad-meta { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 25px; }
.ad-meta i { color: var(--secondary-color); }

/* LIGHTBOX POPUP SYSTEM */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 85%; max-height: 75vh; border-radius: 4px; transform: scale(0.9); transition: transform 0.4s ease; }
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: var(--white); background: none; border: none; font-size: 3rem; cursor: pointer; }
.lightbox-caption { color: var(--white); margin-top: 15px; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; }

/* FLOATING INTERACTIVE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    background-color: #25d366;
    color: var(--white);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.wa-tooltip {
    position: absolute;
    right: 75px; background-color: var(--primary-color);
    color: var(--white); padding: 8px 15px; border-radius: 4px;
    font-size: 0.85rem; font-weight: 500; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: 0.3s;
}

.whatsapp-float:hover .wa-tooltip { opacity: 1; visibility: visible; }

/* TOP BAR UTILITY */
.top-bar { background-color: #050d17; color: #94a3b8; font-size: 0.85rem; padding: 10px 0; }
.top-bar-container { display: flex; justify-content: space-between; align-items: center; }
.top-info span { margin-right: 25px; }
.top-info i { color: var(--secondary-color); margin-right: 6px; }
.seo-badge { color: var(--secondary-color); font-weight: 600; font-size: 0.8rem; border: 1px solid var(--secondary-color); padding: 3px 10px; border-radius: 3px; }

/* NAVBAR SYSTEM */
.main-header {
    background-color: var(--primary-color);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo a { font-size: 1.6rem; color: var(--white); letter-spacing: 1px; }
.logo-bold { font-weight: 700; }
.logo-light { font-weight: 300; color: var(--secondary-color); margin-left: 4px; }
.nav-menu { display: flex; }
.nav-menu li { margin-left: 25px; }
.nav-menu a { color: #cbd5e1; font-weight: 500; font-size: 0.9rem; padding: 8px 0; position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: var(--secondary-color); }
.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--secondary-color); transition: width 0.3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-toggle { display: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* HERO DISPLAY HEADER */
.hero-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=80&w=1920');
    background-size: cover; background-position: center;
    height: 80vh; min-height: 550px; display: flex; align-items: center; color: var(--white);
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11, 29, 51, 0.95) 0%, rgba(11, 29, 51, 0.75) 100%);
}

.hero-content { position: relative; z-index: 10; max-width: 850px; }
.hero-subtitle { color: var(--secondary-color); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1.5px; display: inline-block; margin-bottom: 15px; }
.hero-title { font-size: 3.2rem; color: var(--white); line-height: 1.25; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-desc { font-size: 1.25rem; color: #cbd5e1; margin-bottom: 40px; font-weight: 300; }
.hero-buttons .btn { margin-right: 15px; }

/* PROFILE SECTION */
.profile-section { padding: 100px 0; }
.profile-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.profile-text h2 { font-size: 2.2rem; margin-bottom: 25px; line-height: 1.3; }
.profile-text p { color: var(--text-dark); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.7; text-align: justify; }
.profile-image { position: relative; }
.image-box { width: 100%; height: 380px; background-image: url('https://images.unsplash.com/photo-1521791136368-1a46827d0a1a?auto=format&fit=crop&q=80&w=800'); background-size: cover; background-position: center; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.3s; }
.image-box:hover { transform: scale(1.02); }
.experience-badge { position: absolute; bottom: -20px; left: -20px; background-color: var(--primary-color); padding: 20px 25px; border-radius: 4px; border-bottom: 4px solid var(--secondary-color); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.badge-num { display: block; font-size: 1.3rem; font-weight: 700; color: var(--secondary-color); text-align: center; }
.badge-text { font-size: 0.8rem; text-transform: uppercase; color: var(--white); letter-spacing: 1px; }

/* STRUCTURAL CARDS */
.structure-section { background-color: var(--light-bg); padding: 100px 0; }
.structure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.member-card { background-color: var(--white); border-radius: 6px; padding: 40px 30px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: all 0.3s; border-bottom: 3px solid transparent; }
.member-card:hover { transform: translateY(-5px); border-bottom-color: var(--secondary-color); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.member-avatar { width: 80px; height: 80px; background-color: rgba(11,29,51,0.05); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 20px auto; font-size: 2.2rem; color: var(--primary-color); }
.member-card h4 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.member-role { color: var(--secondary-color); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* PROGRAMS */
.programs-section { padding: 100px 0; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.program-card { padding: 40px 30px; background-color: var(--white); border: 1px solid var(--light-gray); border-radius: 6px; transition: transform 0.3s; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.program-icon { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 20px; }
.program-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.program-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* CERTIFICATION GALLERY CONTAINER */
.gallery-section { background-color: var(--light-bg); padding: 100px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-thumb { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.gallery-thumb:hover { transform: scale(1.04); box-shadow: 0 10px 25px rgba(0,0,0,0.15); filter: brightness(0.9); }

/* ROSTER ALUMNI TABLE */
.alumni-section { padding: 100px 0; }
.table-responsive { width: 100%; overflow-x: auto; box-shadow: 0 5px 25px rgba(0,0,0,0.03); border-radius: 6px; }
.alumni-table { width: 100%; border-collapse: collapse; background-color: var(--white); text-align: left; font-size: 0.95rem; }
.alumni-table th, .alumni-table td { padding: 18px 25px; border-bottom: 1px solid var(--light-gray); }
.alumni-table th { background-color: var(--primary-color); color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 600; }
.alumni-table tbody tr:hover { background-color: var(--light-bg); }
.status-badge { background-color: rgba(46, 204, 113, 0.15); color: var(--green); padding: 4px 12px; border-radius: 4px; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }

/* VIDEO MATRIX (HORIZONTAL & VERTICAL MATRIX GRID) */
.videos-section { background-color: var(--light-bg); padding: 100px 0; }
.video-matrix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.video-card { background-color: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.04); }
.video-thumb-container { position: relative; height: 260px; overflow: hidden; }
.video-thumb-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.video-card:hover .video-thumb-container img { transform: scale(1.05); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background-color: rgba(197, 155, 39, 0.9); color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.play-btn:hover { background-color: var(--primary-color); color: var(--secondary-color); }
.video-info { padding: 25px; }
.video-info h4 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.video-info p { color: var(--text-muted); font-size: 0.85rem; }

/* PARTNER INFRASTRUCTURE */
.partners-section { padding: 80px 0; border-top: 1px solid var(--light-gray); background-color: var(--white); }
.partners-flex { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 30px; }
.partner-logo { font-size: 1.5rem; font-weight: 700; color: #a6b8c7; display: flex; align-items: center; gap: 10px; }
.partner-logo i { font-size: 2.2rem; color: #cbd5e1; }

/* CONTACT MANAGEMENT FRAMEWORK */
.contact-section { background-color: var(--primary-color); color: var(--white); padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-meta-info h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 25px; }
.contact-meta-info p { color: #cbd5e1; font-size: 1.05rem; margin-bottom: 30px; line-height: 1.6; }
.address-details p { margin-bottom: 15px; font-size: 0.95rem; display: flex; align-items: center; }
.address-details i { margin-right: 15px; font-size: 1.2rem; width: 20px; text-align: center; }
.contact-form-box { background-color: var(--white); padding: 40px; border-radius: 8px; color: var(--text-dark); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.contact-form-box h3 { font-size: 1.3rem; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border: 1px solid #cccccc; border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 0.95rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary-color); }

/* FOOTER & VISITOR STATISTICS PLATFORM */
.main-footer { background-color: #050d17; color: #94a3b8; padding: 80px 0 30px 0; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; }
.footer-summary h4 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-summary p { line-height: 1.7; color: #94a3b8; }
.footer-counter h4 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.counter-widget-box { background-color: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); padding: 25px; border-radius: 6px; }
.counter-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; color: #cbd5e1; }
.counter-row i { margin-right: 8px; color: var(--secondary-color); width: 16px; }
.counter-divider { height: 1px; background-color: rgba(255,255,255,0.08); margin: 15px 0; }
.total-row { font-size: 1rem; color: var(--white); font-weight: 600; margin-bottom: 0; }
.total-row strong { color: var(--secondary-color); font-size: 1.1rem; }
.counter-source-badge { font-size: 0.75rem; color: #64748b; text-align: right; margin-top: 8px; font-style: italic; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; text-align: center; margin-top: 60px; font-size: 0.8rem; color: #64748b; }

/* ANIMATION KEYFRAMES */
.animate-float { animation: floatKey 3s ease-in-out infinite; }
@keyframes floatKey {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-pop { animation: popKey 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes popKey {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.animate-fade-in { animation: fadeInKey 1s ease forwards; }
@keyframes fadeInKey {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* HIGHLY ADAPTIVE MEDIA RESPONSIVENESS */
@media (max-width: 992px) {
    .profile-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 50px; }
    .structure-grid, .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .video-matrix-grid { grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background-color: var(--primary-color); flex-direction: column; padding: 40px;
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: block; overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 0 0 25px 0; }
    .nav-menu a { font-size: 1.1rem; display: block; }
    .nav-toggle { display: block; }
    .structure-grid, .programs-grid { grid-template-columns: 1fr; }
    .top-bar { display: none; }
    .hero-title { font-size: 2rem; }
    .form-box, .contact-form-box { padding: 25px; }
}
