*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* ----- HEADER ----- */
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/banner.png);
    background-position: center;
    background-size: cover;
    position: relative;
}

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 200px;
    aspect-ratio: 200 / 100;
    object-fit: cover;
}

.nav-links{
    flex: 1;
    text-align: right;
}

/* Default: tampilkan */
.nav-links .fa-times {
    display: block;
}

/* Jika layar besar (misalnya >= 768px), sembunyikan */
@media (min-width: 768px) {
    .nav-links .fa-times {
        display: none;
    }
}

.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.nav-links ul li::after{
    content: '';
    width: 0px;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after{
    width: 100%;
}

.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.text-box h1{
    font-size: 62px;
}

.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}

.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border:1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}

nav .fa {
    display: none;
}

@media (max-width: 700px) {
    nav .fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
}

@media (min-width: 768px) {
    nav .fa-bars, .nav-links .fa-times {
        display: none !important;
    }
}

@media(max-width: 700px){
    .text-box h1{
        font-size: 20px;
    }

    .nav-links ul li{
        display: block;
    }

    .nav-links{
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    .nav-links ul{
        padding: 30px;
    }
}

/*------ course page header ------*/
.sub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url(images/background.png);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Pastikan nav di atas */
.sub-header nav {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* Container untuk title di tengah */
.sub-header .header-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.sub-header h1 {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 36px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 5;
    width: 100%;
}

/*----- course section -----*/
.course {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.course h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.course p {
    color: gray;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.course-col {
    flex-basis: 31%;
    background: #FAFDD6;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}

.course-col h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    color: #333;
}

.course-col p {
    color: #666;
    text-align: left;
    padding: 10px 0;
}

.course-col:hover {
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

/*----- about us section -----*/
.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.about-col{
    flex-basis: 48%;
    padding: 30px 2px;
}

.about-col img{
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

.about-col h1{
    padding-top: 0;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.about-col p{
    padding: 15px 0 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.red-btn{
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
}

.red-btn:hover{
    color: #fff;
    background: #f44336;
}

/*----- learning section -----*/
.learning {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.learning h1 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
}

.learning p {
    color: gray;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.learning-col {
    flex-basis: 24%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.learning-col img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover {
    background: rgba(226, 0, 0, 0.7);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/*----- MODAL POPUP STYLES -----*/
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.4s;
    overflow: hidden;
}

@keyframes slideDown {
    from { 
        transform: translateY(-100px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 30px;
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.close {
    color: white;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 28px;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    opacity: 0.7;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.modal-body h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f44336;
    padding-bottom: 10px;
}

.modal-body p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.modal-body ul li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.modal-body ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f44336;
    font-weight: bold;
}

.price-section {
    background: #fff3f3;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.price-section .price {
    font-size: 36px;
    font-weight: 700;
    color: #f44336;
    margin: 10px 0;
}

.price-section .duration {
    color: #666;
    font-size: 14px;
}

.enroll-btn {
    display: inline-block;
    background: #f44336;
    color: white;
    padding: 12px 40px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 15px;
    transition: 0.3s;
    font-weight: 500;
}

.enroll-btn:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

/*----- facilities -----*/
.facilities {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.facilities h1 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
}

.facilities p {
    color: gray;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.facilities-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}

.facilities-col img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.facilities-col p {
    padding: 0;
    color: #666;
}

.facilities-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
    color: #333;
}

/*----- testimonials -----*/
.testimonials {
    width: 80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;
}

.testimonials h1 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
}

.testimonials p {
    color: gray;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.testimonials-col {
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
}

.testimonials-col img {
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}

.testimonials-col p {
    padding: 0;
    color: #666;
}

.testimonials-col h3 {
    margin-top: 15px;
    text-align: left;
    color: #333;
}

.testimonials-col .fa {
    color: #f44336;
}

/*------ call to action ------*/
.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(images/banner2.png);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1{
    color:#fff;
    margin-bottom: 40px;
    padding: 0;
}

/*----- footer -----*/
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background: #333;
    color: #fff;
    margin-top: 50px;
}

.footer h4 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.footer p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #fff;
}

.icons .fa {
    color: #f44336;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
    display: inline-block;
    font-size: 18px;
}

.fa-heart-o{
    color:#f44336;
}

/*------ contact us page ------*/
.location{
    width: 80%;
    margin: auto;
    padding: 80px 0;
}

.location iframe{
    width: 100%;
}

.contact-us{
    width: 80%;
    margin: auto;
}

.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
}

.contact-col div{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-col div .fa{
    font-size: 28px;
    color: #f44336;
    margin: 10px;
    margin-right: 30px;
}

.contact-col div p{
    padding: 0;
}

.contact-col div h5{
    font-size: 20px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}

.contact-col input,
.contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* ----- BLOG CONTENT SECTION ----- */
.blog-content {
    width: 80%;
    margin: 60px auto;
    padding: 20px 0;
}

.blog-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.blog-left {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-header-section {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.blog-header-section img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
}

.blog-header-text {
    flex: 1;
}

.blog-header-text h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-header-text .blog-intro {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.blog-body-text p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.blog-right {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.blog-right h3 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f44336;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-list li:hover {
    background: #fff3f3;
    border-left-color: #f44336;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.category-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.category-count {
    background: #f44336;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
}

/* Mobile responsive */
@media(max-width: 700px) {
    .row {
        flex-direction: column;
    }

    .learning-col {
        flex-basis: 100%;
    }

    .sub-header h1 {
        font-size: 24px;
        top: 55%;
    }

    .sub-header {
        height: 60vh;
    }

    .about-col {
        flex-basis: 100%;
        margin-bottom: 30px;
    }

    .testimonials-col {
        flex-direction: row;
        flex-basis: 100%;
    }

    .testimonials-col img {
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin-right: 15px;
    }

    .cta h1{
        font-size: 24px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-body {
        padding: 20px;
        max-height: 400px;
    }

    .price-section .price {
        font-size: 28px;
    }

    /* Blog responsive */
    .blog-content {
        width: 95%;
        margin: 20px auto;
        padding: 10px 0;
    }

    .blog-container {
        flex-direction: column;
        gap: 20px;
    }

    .blog-left {
        width: 100%;
        padding: 20px 15px;
    }

    .blog-header-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .blog-header-section img {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .blog-header-text {
        text-align: center;
    }

    .blog-header-text h2 {
        font-size: 20px;
        line-height: 1.4;
    }

    .blog-header-text .blog-intro {
        font-size: 14px;
    }

    .blog-body-text p {
        font-size: 14px;
        line-height: 1.7;
        text-align: left;
    }

    .blog-right {
        width: 100%;
        position: relative !important;
        top: 0 !important;
        padding: 20px 15px;
    }

    .blog-right h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .category-list li {
        padding: 12px 15px;
        margin-bottom: 10px;
    }

    .category-name {
        font-size: 13px;
    }

    .category-count {
        padding: 3px 10px;
        font-size: 11px;
    }
}

/* Tablet responsive */
@media(min-width: 701px) and (max-width: 1024px) {
    .blog-content {
        width: 90%;
    }

    .blog-container {
        gap: 25px;
    }

    .blog-left {
        padding: 25px;
    }

    .blog-header-section img {
        width: 180px;
    }

    .blog-right {
        width: 280px;
    }
}
}