/* --- Global Resets & Typography Configuration --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #11141a; 
    color: #e2e8f0;
    font-size: 18px; 
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.text-center {
    text-align: center;
}

/* --- Navigation Header Layout Architecture --- */
.main-header {
    background: linear-gradient(135deg, #1a0508 0%, #2e080d 100%); 
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 4px solid #d4af37; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    position: relative;
    width: 100%;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-container h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.logo-container h2 span {
    color: #ff3344; 
    text-shadow: 0 0 10px rgba(255, 51, 68, 0.4);
}

/* --- Desktop Nav Links Styling --- */
.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 25px;
}

.navbar ul li a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #ff3344, #d4af37); 
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.navbar ul li a:hover {
    color: #d4af37; 
}

.navbar ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* --- Mobile Menu Trigger Button --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #d4af37;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Carousel Presentation Elements --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-bottom: 3px solid #ff3344;
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05); 
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1); 
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 5, 8, 0.7);
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
    background: #ff3344;
    color: white;
    border-color: #ff3344;
    box-shadow: 0 0 15px #ff3344;
}

.prev-btn { left: 25px; }
.next-btn { right: 25px; }

/* --- Brand Vision & Mission Layout Elements --- */
.vm-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #161a22 0%, #0d0f14 100%);
}

.vm-grid {
    display: flex;
    gap: 40px;
}

.card {
    background: linear-gradient(145deg, #240a0e 0%, #150406 100%); 
    padding: 45px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 6px solid #d4af37; 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    border-color: #ff3344;
}

.card h3 {
    font-size: 32px; 
    margin-bottom: 20px;
    color: #d4af37; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    font-size: 22px; 
    color: #f7fafc;
    font-weight: 500;
}

/* --- Layout Context Configurations --- */
.updates-section {
    padding: 60px 0 90px 0;
    background-color: #0d0f14;
}

.grids {
    display: flex;
    gap: 40px;
}

.update-box {
    background: #1a1e26;
    padding: 40px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #2d3545;
}

.update-box h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #ffffff;
    border-bottom: 3px solid #ff3344; 
    padding-bottom: 12px;
}

.preview-img-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #d4af37;
}

.zoom-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.update-box:hover .zoom-img {
    transform: scale(1.1); 
}

.section-desc {
    font-size: 18px;
    margin-bottom: 15px;
    color: #cbd5e0;
}

/* --- News Component Styles --- */
.news-list {
    list-style: none;
    margin-bottom: 30px;
}

.news-list li {
    margin-bottom: 18px;
    font-size: 19px; 
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.news-date {
    color: #d4af37;
    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
}

/* --- Button Styling Context --- */
.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #aa841c 100%);
    color: #11141a;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ff3344 0%, #b31c2a 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 51, 68, 0.4);
    transform: translateY(-2px);
}

/* --- About Page Structural System --- */
.page-title-banner {
    background: linear-gradient(rgba(26, 5, 8, 0.88), rgba(17, 20, 26, 0.96)), url('image/gallery/slide1.jpg') no-repeat center center/cover;
    padding: 65px 0;
    text-align: center;
    border-bottom: 3px solid #ff3344;
}

.page-title-banner h1 {
    font-size: 44px;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.page-title-banner .subtitle {
    font-size: 18px;
    color: #a0aec0;
    font-weight: 500;
}

.about-core-section {
    padding: 70px 0 35px 0;
    background-color: #0d0f14;
}

/* Premium Container Card Box */
.premium-about-box {
    background: #161a22;
    padding: 55px 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Glowing Top Accent Border Strip */
.premium-about-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #facc15, #ef4444);
}

.box-header {
    margin-bottom: 35px;
    text-align: left;
}

.box-header h2 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.gold-divider {
    width: 45px;
    height: 3px;
    background-color: #ff3344;
    margin-top: 14px;
    border-radius: 1px;
}

.box-content p {
    margin-bottom: 24px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.box-content p:last-child {
    margin-bottom: 0;
}

/* Premium Highlight Callout Text Styles */
.box-content p.highlight-text {
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 400;
    line-height: 1.7;
    border-left: 3px solid #ff3344;
    padding-left: 20px;
    margin-bottom: 30px;
}

.services-section {
    padding: 35px 0 100px 0;
    background-color: #0d0f14;
}

.section-title-gold {
    font-size: 26px;
    color: #facc15;
    margin-bottom: 55px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.services-grid {
    display: flex;
    gap: 30px;
}

.service-box {
    background: #18080a;
    padding: 50px 35px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    flex: 1;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 25px;
    display: block;
    line-height: 1;
}

.service-box h3 {
    color: #ffffff;
    font-size: 19px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.service-box p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

/* ==========================================================================
   STRICT TILE VIEW SYSTEM DESIGN
   ========================================================================== */
.courses-section {
    padding: 60px 0 90px 0;
    background-color: #0d0f14;
}

.courses-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.course-tile {
    background: #ffffff; 
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid #e2e8f0;
}

.tile-img-container {
    width: 100%;
    height: 220px;
    background-color: #ffffff;
    overflow: hidden;
}

.tile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #ffffff;
}

.tile-header-bar {
    background: linear-gradient(135deg, #2e080d 0%, #1a0508 100%); 
    padding: 10px;
    text-align: center;
    border-top: 1px solid #d4af37;
    border-bottom: 1px solid #d4af37;
}

.tile-header-bar h3 {
    color: #d4af37; 
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.tile-body {
    flex-grow: 1;
    background-color: #ffffff;
}

.tile-row {
    padding: 12px 20px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.tile-row:last-child {
    border-bottom: none;
}

.tile-meta-bar {
    background: linear-gradient(135deg, #1a0508 0%, #2e080d 100%);
    padding: 15px;
    text-align: center;
    color: #ffffff;
    border-top: 2px solid #d4af37;
}

.tile-meta-bar p {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.tile-meta-bar p:last-child {
    margin-bottom: 0;
}

.tile-action {
    background-color: #f8fafc;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.btn-tile-apply {
    display: inline-block;
    width: 75%;
    background: linear-gradient(135deg, #2e080d 0%, #1a0508 100%);
    color: #d4af37;
    padding: 12px 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
}

.btn-tile-apply:hover {
    background: linear-gradient(135deg, #d4af37 0%, #aa841c 100%);
    color: #1a0406;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* --- Premium Footer Blocks --- */
.main-footer {
    background: linear-gradient(135deg, #0d0103 0%, #1a0508 100%);
    color: #cbd5e0;
    text-align: center;
    padding: 40px 20px;
    border-top: 4px solid #d4af37;
}

.main-footer .copyright {
    font-size: 18px; 
    font-weight: 600;
    letter-spacing: 0.5px;
}

.main-footer .designer {
    margin-top: 12px;
    font-size: 15px; 
    color: #ff3344;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Global Animation Utility Properties --- */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   UPDATED MOBILE NAVIGATION DRAWER DESIGN
   ========================================================================== */
@media (max-width: 950px) {
    .menu-toggle {
        display: flex;
    }

    /* SIDEBAR SYSTEM: Opens cleanly across half (50%) of mobile view width */
    .navbar {
        display: block; 
        position: fixed;
        top: 0;
        right: -50%; 
        width: 50%; 
        height: 100vh;
        background: linear-gradient(180deg, #1f0407 0%, #0d0103 100%);
        border-left: 2px solid #d4af37;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding-top: 80px; 
    }

    .navbar.active {
        right: 0;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .navbar ul li {
        margin: 4px 0; 
        text-align: center;
        width: 100%;
        margin-left: 0;
    }

    .navbar ul li a {
        display: block;
        padding: 10px 15px;
        font-size: 15px; 
        font-weight: 500;
        letter-spacing: 0.5px;
        color: #f7fafc;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #ff3344;
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #ff3344;
    }

    .services-grid {
        flex-direction: column;
        gap: 25px;
    }

    .courses-tile-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .logo-container h2 { font-size: 20px; }
    .site-logo { height: 42px; }
    .slider-container { height: 250px; }
    .prev-btn, .next-btn { padding: 6px 12px; font-size: 15px; }
    .vm-grid, .grids { flex-direction: column; gap: 20px; }
    .card, .update-box, .premium-about-box { padding: 35px 25px; }
    .page-title-banner h1 { font-size: 32px; }
    .section-title-gold { font-size: 22px; margin-bottom: 35px; }
    .box-header h2 { font-size: 22px; }
    .box-content p.highlight-text { font-size: 15px; padding-left: 15px; }
    .box-content p { font-size: 14px; }
    .update-box h3 { font-size: 21px; }
    .news-list li { font-size: 16px; }
    .main-footer { padding: 25px 10px; }

    /* --- Responsive Event Countdown Scaling Adjustments --- */
    #homeCountdownBox {
        padding: 8px 12px !important;
        gap: 5px !important;
        justify-content: center;
        width: 100%;
    }
    #homeCountdownBox > div {
        min-width: 38px !important;
        font-size: 16px !important;
    }
    #homeCountdownBox span {
        font-size: 16px !important;
    }
    #homeCountdownBox small {
        font-size: 8px !important;
    }
}