/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* PKBM INTAN Theme - Blue & Gold Modern */
    --brand-blue: #0F2C59;
    /* Navy Blue Header Top */
    --brand-dark: #0A1F40;
    /* Darker Navy Navbar */
    --brand-gold: #FFC107;
    /* Vivid Yellow/Gold */
    --brand-gold-hover: #FFB300;

    --card-purple: #7B61FF;
    --card-red: #FF6B6B;
    --card-blue: #4D96FF;
    --card-green: #2ECC71;
    --card-cyan: #00BCD4;

    --bg-body: #FFFFFF;
    --bg-light: #F8F9FA;

    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-on-dark: #FFFFFF;

    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
.btn,
.nav-links a {
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* === STACKED HEADER STYLES === */
.header-top {
    background-color: var(--brand-blue);
    color: #fff;
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.site-identity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    font-size: 30px;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    /* Gold Glow */
    border: 2px solid var(--brand-gold);
}

.navbar {
    background-color: var(--brand-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--brand-gold);
    /* Gold Accent Line */
}

/* --- PREMIUM SPLIT LOGIN STYLES --- */
.login-body {
    background-color: #f0f2f5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-split-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-left {
    flex: 1.2;
    background: linear-gradient(rgba(15, 44, 89, 0.85), rgba(15, 44, 89, 0.95)), url('../img/hero1.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #fff;
    position: relative;
}

.login-left-content {
    max-width: 500px;
}

.login-logo-box {
    margin-bottom: 30px;
}

.login-logo-box i {
    font-size: 3rem;
    color: var(--brand-gold);
}

.login-left h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.login-left p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.login-footer-left {
    position: absolute;
    bottom: 40px;
    left: 60px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.login-right {
    flex: 0.8;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.login-form-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-title {
    font-size: 2rem;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.input-group-custom {
    margin-bottom: 25px;
    position: relative;
}

.input-group-custom label {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group-custom input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

.input-group-custom input:focus {
    border-color: var(--brand-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
}

.btn-login-premium {
    width: 100%;
    padding: 15px;
    background-color: var(--brand-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login-premium:hover {
    background-color: #0A1F40;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 44, 89, 0.2);
}

.login-back-link {
    margin-top: 30px;
    display: inline-block;
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
}

.login-back-link:hover {
    color: var(--brand-blue);
}

@media (max-width: 900px) {
    .login-split-wrapper {
        flex-direction: column;
    }

    .login-left {
        padding: 40px;
        flex: 0.4;
    }

    .login-right {
        flex: 1;
        padding: 40px;
    }
}

/* --- PROFILE SECTION (PKBM INTAN STYLE) --- */
.profile-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.profile-logo-box {
    text-align: center;
    padding: 20px;
}

.profile-logo-box img {
    max-width: 180px;
    margin-bottom: 20px;
}

.profile-logo-box h2 {
    font-size: 1.8rem;
    color: var(--brand-blue);
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-logo-box span {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
}

.profile-content h4 {
    color: var(--brand-gold);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-content h2 {
    color: var(--brand-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.profile-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify;
}

.btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-gold);
    color: #000;
    padding: 12px 30px;
    border-radius: 4px;
    /* Square/slightly rounded corners like reference */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-profile:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-profile i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-logo-box img {
        max-width: 120px;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 55px;
    /* Slimmer Nav */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered Nav */
}

.nav-links {
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.dropdown:hover .dropbtn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--brand-gold);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--brand-blue);
    min-width: 220px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 200;
    top: 100%;
    left: 0;
    border-top: 3px solid var(--brand-gold);
}

.dropdown-content a {
    color: #fff;
    padding: 12px 20px;
    display: block;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    text-transform: capitalize;
}

.dropdown-content a:hover {
    background-color: var(--brand-dark);
    color: var(--brand-gold);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Yellow Button */
.btn-gold {
    background-color: var(--brand-gold);
    color: var(--brand-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
    text-transform: uppercase;
}

.btn-gold:hover {
    background-color: var(--brand-gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 8px 25px;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
}

.btn-outline:hover {
    background: var(--brand-blue);
    color: #fff;
}

/* === END HEADER === */

/* HOME & SECTIONS */
.hero-wrapper {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 89, 0.8);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

/* TICKER */
.ticker-wrap {
    background: var(--brand-dark);
    height: 50px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--brand-gold);
    color: #fff;
}

.ticker-label {
    background: var(--brand-gold);
    color: var(--brand-blue);
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    padding-left: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--brand-blue);
    margin-bottom: 60px;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* GRIDS */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.program-header {
    height: 150px;
    background: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-direction: column;
}

.program-body {
    padding: 30px;
}

.program-body h3 {
    color: var(--brand-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* --- FEATURE GRID 8 CARDS (PKBM INTAN STYLE) --- */
.features-section {
    padding: 60px 0;
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 30px 20px;
    border-radius: 8px;
    /* Slightly rounded */
    color: #fff;
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align content */
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* Specific Colors from Reference */
.bg-purple {
    background-color: #7b68ee;
}

.bg-red {
    background-color: #ff6b6b;
}

.bg-blue {
    background-color: #4da6ff;
}

.bg-green {
    background-color: #4db6ac;
}

/* Teal-ish Green */
.bg-cyan {
    background-color: #26c6da;
}

.bg-light-blue {
    background-color: #4dd0e1;
}

@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--brand-gold);
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(5px);
}

.news-thumb {
    width: 100px;
    height: 80px;
    background: #ddd;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-content h4 {
    font-size: 1rem;
    color: var(--brand-blue);
    margin-bottom: 5px;
    line-height: 1.3;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.video-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 89, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: #fff;
    color: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

footer {
    background: var(--brand-dark);
    color: #fff;
    padding: 60px 0 20px;
    text-align: center;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}