/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2e272b;
    background-color: #f9f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pmb-banner {
    margin-top: 4.5rem;
    background-color: #f5fdfd;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pmb-banner {
    margin-top: 4.5rem;
    background-color: #f5fdfd;
    padding: 0;
    position: relative; /* so absolute children are positioned correctly */
    overflow: hidden;
}

.pmb-banner .container {
    width: 100%;
    max-width: 100%;
    height: 400px;
    padding: 0;
    position: relative; /* important for positioning text */
}

.pmb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pmb-banner .container {
    width: 100%;
    max-width: 100%;
    height: 400px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.pmb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay */
.pmb-banner .container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1); /* adjust darkness: 0.3 lighter, 0.7 darker */
    z-index: 1;
}

.texttext {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2; /* above overlay */
    padding: 0 1rem;
}

/* Tablet */
@media (max-width: 768px) {
  .texttext {
    font-size: 1rem;  /* lebih kecil di tablet */
    line-height: 1.2;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  .texttext {
    font-size: 0.8rem;  /* kecilin lagi di HP */
    line-height: 1.2;
  }
}

.bbutton {
    position: absolute;
    top: 80%; /* Move below the text */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.bbutton button {
    background: linear-gradient(135deg, #002fff, #0088ff); /* gradient background */
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.bbutton button:hover {
    background: linear-gradient(135deg, #0088ff, #002fff); /* reverse gradient */
    transform: scale(1.05);
}

/* optional dark overlay to help text pop */
.pmb-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
  pointer-events: none;
}

/* bottom fade that merges into the next section */
.pmb-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px; /* fade height — tweak as needed */
  background: linear-gradient(to bottom,
              rgba(0,0,0,0) 0%,
              #192179 100%); /* change #3b4f9a to your program-section color */
  z-index: 2;
  pointer-events: none;
}

/* Header Styles */
.header {
    background-color: #0c1143;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, #192179 0%,  #535463 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2e272b;
}

/* Program Section */
.program-section {
    background-color: white;
}

.program-grid {
    display: block;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* otomatis sejajar */
    align-items: stretch;  /* 🔥 bikin semua card dalam 1 baris sama tinggi */
    justify-content: space-between; /* biar isi rata */
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s, box-shadow 0.2s;

    display: flex;          /* biar isi bisa fleksibel */
    flex-direction: column; /* isi tetap rapi ke bawah */
}



.program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.program-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #182072;
}

.program-card p {
    line-height: 1.7;
    text-align: justify;
}

.program-card ol, 
.program-card ul {
    padding-left: 1.5rem;   /* indent */
    margin: 0.5rem 0 1rem;
    font-size: 1rem;
}

.program-card li {
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 0.5rem;
}

.program-card h4 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #2e2f3f;
}



/* Career Section */
.career-section {
    background-color: #f9f8f8;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.career-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s, box-shadow 0.2s;
}

.career-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.career-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.career-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2e272b;
}

.career-item p {
    color: #666;
}

/* Faculty Section */
.faculty-section {
    background-color: white;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.faculty-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faculty-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faculty-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.faculty-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2e272b;
}

.faculty-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background-color: #f9f8f8;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #182072;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #2e272b;
    font-weight: 600;
}

.contact-item p {
    color: #666;
}

.newsletter {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
}

.newsletter h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #182072;
}

.newsletter p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #182072;
}

.newsletter-form button {
    background-color: #182072;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.newsletter-form button:hover {
    background-color: #182072;
}

/* Footer */
.footer {
    background-color: #27282e;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
}

.footer-logo-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-logo-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #c7cccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a4a4a;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100px;           /* agak turun dari header */
        right: 15px;         /* mepet kanan */
        width: 220px;        /* kecil, ga full width */
        background-color: rgba(12, 17, 67, 0.9); /* biru transparan */
        border-radius: 12px; /* rounded biar modern */
        padding: 1rem;
        flex-direction: column;
        gap: 0.8rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* biar ngambang */
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease; /* animasi */
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu a {
        color: white;
        font-weight: 500;
        text-decoration: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .career-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .faculty-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .program-card,
    .career-item,
    .faculty-card {
        padding: 1.5rem;
    }

    .newsletter {
        padding: 1.5rem;
    }
}