/* Core Styling & Modern Dark/Edge Aesthetic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: #0b0c10;
    color: #c5c6c7;
}

body {
    overflow-x: hidden;
}

/* Header & Fading Logo */
header {
    background-color: rgba(11, 12, 16, 0.95);
    border-bottom: 2px solid #1f2833;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Soft Fading Effect for the Logo Image */
.fading-logo {
    height: 55px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.logo-container:hover .fading-logo {
    opacity: 1;
    transform: scale(1.03);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.sub-title {
    color: #e50914; /* Authentic Martial Arts Red */
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation System */
nav .nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-btn {
    color: #c5c6c7;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

.nav-btn:hover {
    color: #ffffff;
    background-color: #1f2833;
    border-color: #45f3ff; /* Glow Accent cyan border */
    transform: translateY(-2px);
}

.nav-btn.active {
    background-color: #e50914;
    color: #ffffff;
    border-color: #e50914;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* Mobile Hamburger Button */
		/* .menu-toggle {
    		display: none;
    		background: none;
    		border: none;
    		color: white;
    		font-size: 1.8rem;
    		cursor: pointer;
		} */
/* delete below its for menu under humberger */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    
    /* Changed to column layout to stack text strictly UNDER the icon */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px; /* Very tight spacing so it fits neatly inside the mobile header */
}

/* Styles the small "MENU" text label indicator underneath */
.menu-toggle .menu-text {
    font-size: 0.65rem; /* Reduced slightly to ensure it fits mobile header height perfectly */
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #c5c6c7; 
    text-transform: uppercase;
    transition: color 0.2s ease;
    line-height: 1;
}

/* Styles the size and line alignment of the symbol */
.menu-toggle .menu-icon {
    font-size: 1.6rem; /* Scaled slightly to balance the vertical look */
    line-height: 1;
}

/* Minor hover effect when tapped or hovered */
.menu-toggle:hover .menu-text {
    color: #ffffff;
}

/* Ensure the layout switches correctly inside your mobile media query breakpoint */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; 
        position: absolute;
        right: 20px;
        top: 18px; /* DELETE HERE Adjusted slightly up to comfortably clear the header top bound */
    }
}



/* Hero Section with Intense Backdrop layout and Dynamic Background Image */
.hero {
    position: relative;
    background: linear-gradient(90deg, rgba(11,12,16,0.9) 30%, rgba(11,12,16,0.4) 100%), url('images/hero_bg.jpg') no-repeat center center/cover;
    height: 75vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    border-bottom: 3px solid #e50914;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.badge {
    display: inline-block;
    background-color: rgba(69, 243, 255, 0.1);
    color: #45f3ff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid #45f3ff;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #a4a6a8;
}

/* Dynamic Call to Action Buttons */
.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
}

.btn-primary {
    background-color: #e50914;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background-color: #ff1c27;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0b0c10;
    transform: translateY(-3px);
}

/* Dynamic Content System Layout */
.content-hub {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: #e50914;
    margin: 15px 0 35px 0;
}

.lead-text {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}
/* Grid Layout for Program Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: #1f2833;
    padding: 40px 30px;
    border-radius: 6px;
    border-top: 4px solid #e50914;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #45f3ff;
}

.card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tab-placeholder-text {
    background-color: #1a1a24;
    border: 1px dashed #333344;
    padding: 40px;
    text-align: center;
    border-radius: 6px;
    font-style: italic;
}

/* Custom Table & Location UI Additions */
.branch-schedule-wrapper {
    background-color: #11141a;
    border: 1px solid #1f2833;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.branch-schedule-header {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid #e50914;
    padding-left: 12px;
}

.table-responsive {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.schedule-table th {
    background-color: #1f2833;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #e50914;
}

.schedule-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #1f2833;
    color: #d1d2d3;
    font-size: 0.95rem;
}

.schedule-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Stylized Row Badges */
.program-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}
.program-tag.prime { background-color: rgba(229, 9, 20, 0.15); color: #ff333f; border: 1px solid #e50914; }
.program-tag.ladies { background-color: rgba(232, 62, 140, 0.15); color: #f85fd2; border: 1px solid #e83e8c; }
.program-tag.asian { background-color: rgba(40, 167, 69, 0.15); color: #2ecc71; border: 1px solid #28a745; }
.program-tag.kids { background-color: rgba(253, 126, 20, 0.15); color: #ff9f43; border: 1px solid #fd7e14; }
.program-tag.adult { background-color: rgba(0, 123, 255, 0.15); color: #54a0ff; border: 1px solid #007bff; }

.days-highlight {
    font-weight: 600;
    color: #ffffff;
}

.price-cell {
    font-weight: 700;
    color: #45f3ff;
    font-size: 1.1rem;
}
.price-cell small {
    color: #666;
    font-size: 0.75rem;
    font-weight: 400;
}

/* Location Cards Controls */
.location-desc {
    margin-bottom: 25px;
    min-height: 48px;
    line-height: 1.5;
}

.location-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-location-map {
    background-color: #1f2833;
    border: 1px solid #45f3ff;
    color: #45f3ff;
    padding: 10px;
    font-size: 0.85rem;
}
.btn-location-map:hover {
    background-color: #45f3ff;
    color: #0b0c10;
    transform: translateY(-2px);
}

.btn-location-video {
    background-color: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 10px;
    font-size: 0.85rem;
}
.btn-location-video:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Belt Grading Tab Matrix Styling Layout Rules */
.belt-graphic-banner {
    width: 100%;
    /* REMOVED 'max-height: 380px' TO PREVENT BOX CLIPPING */
    height: auto; 
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #1f2833;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: #0b0c10;
}

.belt-showcase-img {
    width: 100%;
    height: auto; /* Ensures the image dictates its own healthy height proportional to width */
    object-fit: contain; 
    display: block;
}


.belt-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.belt-matrix-card {
    border-radius: 6px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    font-weight: 700;
}

/* Premium Dynamic Belt Glow Boxes Scheme */
.rank-red { 
    background-color: rgba(229, 9, 20, 0.12); 
    border: 1px solid rgba(229, 9, 20, 0.4); 
}
.rank-red .belt-rank-title { color: #ff4d5a; }
.rank-red .belt-rank-code { color: #ffa3a9; }
.rank-red:hover { box-shadow: 0 0 20px rgba(229, 9, 20, 0.4); background-color: rgba(229, 9, 20, 0.25); }

.rank-yellow { 
    background-color: rgba(241, 196, 15, 0.08); 
    border: 1px solid rgba(241, 196, 15, 0.35); 
}
.rank-yellow .belt-rank-title { color: #f3d453; }
.rank-yellow .belt-rank-code { color: #fbf0b9; }
.rank-yellow:hover { box-shadow: 0 0 20px rgba(241, 196, 15, 0.4); background-color: rgba(241, 196, 15, 0.2); }

.rank-orange { 
    background-color: rgba(230, 126, 34, 0.1); 
    border: 1px solid rgba(230, 126, 34, 0.35); 
}
.rank-orange .belt-rank-title { color: #f39c12; }
.rank-orange .belt-rank-code { color: #fbc784; }
.rank-orange:hover { box-shadow: 0 0 20px rgba(230, 126, 34, 0.4); background-color: rgba(230, 126, 34, 0.22); }

.rank-green { 
    background-color: rgba(46, 204, 113, 0.1); 
    border: 1px solid rgba(46, 204, 113, 0.35); 
}
.rank-green .belt-rank-title { color: #2ecc71; }
.rank-green .belt-rank-code { color: #a3f7bf; }
.rank-green:hover { box-shadow: 0 0 20px rgba(46, 204, 113, 0.4); background-color: rgba(46, 204, 113, 0.22); }

.rank-blue { 
    background-color: rgba(52, 152, 219, 0.1); 
    border: 1px solid rgba(52, 152, 219, 0.35); 
}
.rank-blue .belt-rank-title { color: #3498db; }
.rank-blue .belt-rank-code { color: #a9d4f5; }
.rank-blue:hover { box-shadow: 0 0 20px rgba(52, 152, 219, 0.4); background-color: rgba(52, 152, 219, 0.22); }

.rank-purple { 
    background-color: rgba(155, 89, 182, 0.12); 
    border: 1px solid rgba(155, 89, 182, 0.35); 
}
.rank-purple .belt-rank-title { color: #bf78de; }
.rank-purple .belt-rank-code { color: #e9ccf7; }
.rank-purple:hover { box-shadow: 0 0 20px rgba(155, 89, 182, 0.4); background-color: rgba(155, 89, 182, 0.25); }

.rank-brown { 
    background-color: rgba(139, 102, 89, 0.14); 
    border: 1px solid rgba(160, 122, 109, 0.4); 
}
.rank-brown .belt-rank-title { color: #cca497; }
.rank-brown .belt-rank-code { color: #ebdcd7; }
.rank-brown:hover { box-shadow: 0 0 20px rgba(139, 102, 89, 0.45); background-color: rgba(139, 102, 89, 0.28); }

.rank-black { 
    background-color: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
}
.rank-black .belt-rank-title { color: #ffffff; }
.rank-black .belt-rank-code { color: #a4a6a8; }
.rank-black:hover { box-shadow: 0 0 25px rgba(255, 255, 255, 0.25); background-color: rgba(255, 255, 255, 0.1); border-color: #ffffff; }

.belt-rank-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.belt-rank-code {
    font-size: 0.85rem;
}

/* Requirements Active Panel Box Styles */
.requirements-panel-box {
    background-color: #11141a;
    border: 1px solid #1f2833;
    border-top: 3px solid #45f3ff;
    border-radius: 6px;
    padding: 30px;
    min-height: 250px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    scroll-margin-top: 120px;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#active-rank-label {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.panel-category-badge {
    background-color: rgba(229, 9, 20, 0.1);
    color: #e50914;
    border: 1px solid #e50914;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.panel-divider-line {
    height: 1px;
    background-color: #1f2833;
    margin: 20px 0;
}

.placeholder-text-prompt {
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 40px 0;
}

.syllabus-block-node {
    margin-bottom: 20px;
}

.syllabus-block-node h4 {
    color: #45f3ff;
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.syllabus-block-node p {
    color: #c5c6c7;
    line-height: 1.6;
    padding-left: 15px;
    border-left: 2px solid #333;
}

/* Footer Element */
footer {
    background-color: #000000;
    color: #666666;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
    border-top: 1px solid #1f2833;
    margin-top: 100px;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Controls */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }
    nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        gap: 5px;
    }
    nav .nav-links.show {
        display: flex;
    }
    .nav-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero {
        background: linear-gradient(180deg, rgba(11,12,16,0.95) 40%, rgba(11,12,16,0.6) 100%), url('images/hero_bg.jpg') no-repeat center center/cover;
    }
}

/* Training Component Layout Resizing Filters */
.training-program-grid {
    align-items: stretch;
}

.program-display-card {
    padding: 0 !important; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #11141a;
}

.program-img-wrapper {
    width: 100%;
    height: 240px; 
    overflow: hidden;
    border-bottom: 2px solid #1f2833;
    background-color: #0b0c10;
}

.program-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.program-card-body {
    padding: 30px;
    position: relative;
    flex-grow: 1;
}

.program-card-body h3 {
    margin-top: 10px;
}
/* Stylized Content Layout Pillars For Training Section */
.program-intro {
    font-size: 1.05rem;
    color: #ffffff !important;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 600;
    border-left: 3px solid #e50914;
    padding-left: 12px;
}

.benefit-features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.feature-node {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.feature-node:hover {
    background: rgba(69, 243, 255, 0.03);
    border-color: rgba(69, 243, 255, 0.15);
}

.feature-icon {
    font-size: 1.5rem;
    line-height: 1;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 6px;
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a4a6a8;
}

/* Specific Tablet adjustments to prevent cramping */
@media (max-width: 992px) {
    .training-program-grid {
        grid-template-columns: 1fr;
    }
}
.benefit-banner-subholder {
    width: 100%;
    height: auto;
    max-height: 180px; /* Limits extreme expansion on wide desktop monitors */
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.benefit-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Contact Us Nav Button Highlight Configuration Rules */
.nav-contact-highlight {
    border: 1px solid rgba(69, 243, 255, 0.3) !important;
    background-color: rgba(69, 243, 255, 0.05);
}
.nav-contact-highlight:hover {
    background-color: #25d366 !important; /* Authentic global WhatsApp Green on tab focus hover */
    border-color: #25d366 !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Floating WhatsApp Interactive Tracking Fixed Widget Style Parameters */
.whatsapp-floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    z-index: 99999; /* Higher priority execution layer vectors */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-floating-button:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
    background-color: #22c35e;
}

.whatsapp-svg-icon {
    width: 34px;
    height: 34px;
    fill: #ffffff;
}

/* Small Smartphone Grid Mobile Adjustments */
@media (max-width: 576px) {
    .whatsapp-floating-button {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-svg-icon {
        width: 28px;
        height: 28px;
    }
}
/* JKA Philosophy Component Styling Rules */
.philosophy-section {
    position: relative;
    background-color: #11141a;
    border: 1px solid #1f2833;
    border-radius: 8px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
    text-align: left; /* Aligns left for punchy editorial style */
}

.philosophy-content {
    flex: 1;
    max-width: 650px;
    z-index: 5; /* Forces text to layer cleanly over the graphic wrap */
}

.philosophy-badge {
    color: #45f3ff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.philosophy-section h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.philosophy-accent-line {
    height: 3px;
    width: 45px;
    background-color: #e50914;
    margin: 15px 0 25px 0;
}

.philosophy-highlight-text {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 600;
}

.philosophy-body-p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a4a6a8;
    margin-bottom: 25px;
}

/* Callout Quote Box */
.philosophy-quote-box {
    border-left: 3px solid #45f3ff;
    padding-left: 20px;
    margin-top: 25px;
}

.philosophy-quote-box p {
    font-size: 1.05rem;
    font-style: italic;
    color: #45f3ff;
    line-height: 1.6;
}

/* Watermark Frame Vector Container Rules */
.philosophy-watermark-holder {
    flex: 1;
    max-width: 400px;
    height: 350px;
    position: relative;
    opacity: 0.35; /* Subtle watermark layout transparency effect */
    transition: opacity 0.4s ease;
}

.philosophy-section:hover .philosophy-watermark-holder {
    opacity: 0.55; /* Highlights clarity gently when user moves cursor close */
}

.philosophy-watermark-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    mask-image: linear-gradient(to right, transparent, #000 20%); /* Blends edge into layout */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 20%);
}

/* Responsive Structural Overrides for Smaller Handheld Touch Devices */
@media (max-width: 992px) {
    .philosophy-section {
        flex-direction: column;
        padding: 30px;
    }
    .philosophy-watermark-holder {
        width: 100%;
        max-width: 100%;
        height: 250px;
        margin-top: 20px;
        opacity: 0.2;
    }
    .philosophy-watermark-img {
        mask-image: linear-gradient(to top, transparent, #000 20%);
        -webkit-mask-image: linear-gradient(to top, transparent, #000 20%);
    }
}
/* Grading Requirements Dossier Watermark Overlays Rules */
.requirements-panel-box {
    position: relative; /* Essential to act as an anchor point for absolute layers */
    background-color: #11141a;
    border: 1px solid #1f2833;
    border-top: 3px solid #45f3ff;
    border-radius: 6px;
    padding: 30px;
    min-height: 280px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    scroll-margin-top: 120px;
    overflow: hidden; /* Keeps the background watermark image edges from bleeding outside the card */
}

/* Isolated Background Watermark Element Canvas Layer */
.grading-watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Pushes the layer behind content texts */
    opacity: 0.20; /* Sets strict 20% visibility parameter boundaries */
    pointer-events: none; /* Allows user text mouse selections without clicking the picture background */
}

.grading-watermark-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Automatically stretches image flawlessly across variable text space sizes */
    display: block;
}

/* Foreground Text Layer wrapper to maintain readability */
.requirements-panel-content {
    position: relative;
    z-index: 5; /* Forces text layout nodes above the 20% watermark artwork layer canvas */
}
/* Instagram Profile Embedded Canvas Layout Rules */
.instagram-frame-holder {
    max-width: 600px;
    margin: 0 auto;
    background-color: #11141a;
    border: 1px solid #1f2833;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.instagram-iframe {
    width: 100%;
    height: 620px; /* Provides ample breathing room for the layout headers and recent top posts grid */
    border: none;
    border-radius: 4px;
    background-color: #ffffff; /* Instagram native components render best against standard clean backgrounds */
    display: block;
}

/* Ensure the iframe container adapts seamlessly to smaller touch targets */
@media (max-width: 576px) {
    .instagram-frame-holder {
        padding: 10px;
    }
    .instagram-iframe {
        height: 520px;
    }
}
/* Instagram Profile Aesthetic Card Layout Styles */
.instagram-showcase-container {
    max-width: 550px;
    margin: 40px auto;
    padding: 0 10px;
}

.instagram-profile-card {
    background-color: #11141a;
    border: 1px solid #1f2833;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(229, 9, 20, 0.15); /* Soft crimson hover glow */
}

/* Beautiful custom gradient strip matching classic Instagram look */
.instagram-card-topbar {
    height: 6px;
    width: 100%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-card-body {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Custom avatar spacing ring layout elements */
.ig-avatar-ring {
    width: 100px;
    height: 100px;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    border-radius: 50%;
    margin-bottom: 15px;
}

.ig-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #0b0c10;
    display: block;
    border: 2px solid #11141a;
}

.ig-profile-name {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.ig-profile-handle {
    color: #45f3ff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.ig-profile-handle:hover {
    color: #ffffff;
}

.ig-verified-badge {
    display: inline-block;
    background-color: rgba(69, 243, 255, 0.08);
    color: #45f3ff;
    border: 1px solid rgba(69, 243, 255, 0.3);
    padding: 3px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.ig-profile-bio {
    color: #a4a6a8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 420px;
}

.ig-action-wrapper {
    width: 100%;
}

.ig-follow-btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 0;
    font-size: 0.95rem;
}

/* Make card structure tightly scale on compact mobile displays */
@media (max-width: 480px) {
    .instagram-card-body {
        padding: 30px 20px;
    }
    .ig-profile-name {
        font-size: 1.4rem;
    }
}
/* Student Member Portal System Layout Rules */
.portal-frame-holder {
    width: 100%;
    max-width: 950px;
    margin: 30px auto;
    background-color: #11141a;
    border: 1px solid #1f2833;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.portal-embed-iframe {
    width: 100%;
    height: 750px; /* Provides comfortable vertical screen space to scroll terms and view card photos */
    border: none;
    background-color: #ffffff; /* Sets a clean base background for data portal inputs */
    display: block;
}

/* Ensure smooth sizing across compact mobile viewports */
@media (max-width: 768px) {
    .portal-frame-holder {
        margin: 15px auto;
    }
    .portal-embed-iframe {
        height: 600px; /* Reduced layout height to scale perfectly on smartphones */
    }
}
/* ==========================================
   DESKTOP TOGGLE BUTTON PROTECTION FIREWALL
   Guarantees the mobile menu button remains completely invisible on desktop
   ========================================== */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important; /* Forces the entire hamburger icon and text to remain hidden on computers */
    }
}


/* ========================================================
   GLOBAL ANCHOR LINK LINK OVERLAP PROTECTION FIREWALL
   ======================================================== */
html {
    scroll-behavior: smooth;
    /* Instructs the browser to halt scrolling exactly 130px 
       before the section edge to clear your sticky header */
    scroll-padding-top: 130px !important; 
}

/* Fallback anchor cushion block targeting specific sections */
:target {
    scroll-margin-top: 130px !important;
}


/* ========================================================
   ARABIC NAVIGATION MOBILE CENTERING OVERRIDE
   ======================================================== */
@media (max-width: 768px) {
    /* 1. Header flow stacked layout structure */
    header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    /* 2. Forces hamburger text & icon under the logo on the right edge */
    .menu-toggle {
        position: relative !important;
        align-self: flex-end !important;
        margin: 10px 0 10px auto !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 3. Forces the menu links dropdown container to stretch and center */
    nav .nav-links, 
    nav .nav-links.show {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;    /* Centers items horizontally */
        justify-content: center !important;  /* Centers items vertically */
        text-align: center !important;
        margin: 15px auto 0 auto !important;
        padding: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* 4. Ensures the button links inside align their text to the center */
    .nav-btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px 0 !important; /* Slightly increased for easier mobile tapping */
    }
}
/* ========================================================
   1. FIXED ANCHOR LINK HEADER OVERLAP
   ======================================================== */
html {
    scroll-behavior: smooth !important;
}

/* Forces targeted sections to stop exactly 130px below your sticky header */
section, .content-hub, [id] {
    scroll-margin-top: 130px !important;
}

/* ========================================================
   2. MOBILE ARABIC & ENGLISH MENU SYSTEM
   ======================================================== */
@media (max-width: 768px) {
    /* Layout structure configuration */
    header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    /* Pushes hamburger button text & icon below the logo on the right edge */
    .menu-toggle {
        position: relative !important;
        align-self: flex-end !important;
        margin: 10px 0 10px auto !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* IMPORTANT: Keeps menu HIDDEN by default on mobile devices */
    nav .nav-links {
        display: none !important; 
    }

    /* ONLY reveals the menu and centers it when the '.show' class is toggled via click */
    nav .nav-links.show {
        width: 100% !important;
        display: flex !important; /* Overrides hidden state cleanly */
        flex-direction: column !important;
        align-items: center !important;    /* Centers items horizontally */
        justify-content: center !important;  /* Centers items vertically */
        text-align: center !important;
        margin: 15px auto 0 auto !important;
        padding: 0 !important;
        left: 0 !important;
        right: 0 !important;
        gap: 5px !important;
    }

    /* Restores full scale and thick sizing to your button background glow outlines */
    .nav-btn {
        display: inline-block !important;
        width: 100% !important;
        max-width: 360px !important;
        text-align: center !important;
        padding: 6px 45px !important; /* Re-extends the red highlight bounding box */
        margin: 6px auto !important;
        white-space: nowrap !important;
    }
    
        /* Changes the background to red when hovered */
    .nav-btn:hover {
        background-color: #e50914 !important; /* Authentic Martial Arts Red */
        color: #ffffff !important;            /* Keeps text clean white */
        border-color: #e50914 !important;     /* Changes border to match red */
        box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4) !important; /* Adds a nice red glow */
    }

    .nav-btn.active {
        width: 90% !important;
    }
}
