/* ==========================================================================


   CSS Variables & Theme Configuration
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #e60000;
    /* Bright Red */
    --color-primary-dark: #8b0000;
    /* Dark Red */
    --color-bg-main: #050505;
    /* Near Black */
    --color-bg-secondary: #111111;
    /* Very Dark Gray */
    --color-bg-card: #1a1a1a;
    /* Dark Card Background */
    --color-text-main: #ffffff;
    /* Pure White */
    --color-text-muted: #a0a0a0;
    /* Light Gray */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-varsity: 'Graduate', cursive;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 8px;
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.padding-y {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.text-red {
    color: var(--color-primary);
}

.text-right {
    text-align: right !important;
}

.text-black {
    color: #000000;
    -webkit-text-stroke: 1px #ffffff;
    /* Add white stroke so black is visible on dark background */
}

.section-dark {
    background-color: var(--color-bg-main);
}

.mobile-break {
    display: none;
}

.section-pattern {
    background-color: var(--color-bg-secondary);
    background-image: radial-gradient(var(--color-bg-card) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-main);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text-main);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg-main);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    /* More space for desktop links */
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 10px;
    position: relative;
}

/* Expansion for Header to match brand visual signature (logos at ends) */
.navbar .nav-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 10px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

@media screen and (min-width: 1025px) {
    .nav-links {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
    }
}

/* Professional centering for simple navbar buttons (Registration/Internal) */
.navbar-simple .nav-btns {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    display: flex !important;
}

.nav-cta {
    display: flex;
}

/* Device-specific visibility utility */
@media screen and (min-width: 1025px) {
    .nav-hide-desktop,
    .navbar .nav-btns.nav-hide-desktop {
        display: none !important;
    }
    .nav-logo-right {
        display: flex !important;
    }
}

@media screen and (max-width: 1024px) {
    .nav-logo-right {
        display: none !important;
    }
}

.logo {
    font-family: var(--font-varsity);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-red {
    color: var(--color-primary);
}

.logo-img {
    max-height: 80px;
    width: auto;
    display: block;
}

.navbar-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-medium);
    background-color: white !important; /* Ensure white background for the circle */
    border-radius: 50% !important; /* Shape into circle */
    aspect-ratio: 1 / 1; /* Force perfect square before rounding */
    padding: 2px; /* Slight breathing room for the logo content */
}

.nav-logo-left,
.nav-logo-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-logo-left:hover,
.nav-logo-right:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.chinese-logo-nav {
    display: block;
    background-color: transparent !important;
    /* Filters removed to allow natural bright red and yellow colors */
}

@media screen and (max-width: 992px) {
    .navbar {
        padding: 12px 0 !important;
    }
    
    .navbar.scrolled {
        padding: 8px 0 !important;
    }

    .navbar-logo {
        max-height: 50px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns on tablet */
    }
}

@media screen and (max-width: 768px) {
    .nav-logo-left {
        order: 1 !important;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
        order: 4 !important;
    }

    .nav-btns {
        display: flex !important;
        order: 2 !important;
        margin: 0 !important;
        justify-content: center !important;
        flex: 1 !important;
    }

    .nav-back-btn {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
        border-width: 1px !important;
        white-space: nowrap;
    }

    .nav-cta {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
        order: 10 !important; /* Ensure it is the last item */
        margin-left: auto !important; /* Push it to the right */
        padding: 5px 10px;
    }

    .container {
        width: 92%;
    }

    .hero-slide-content {
        padding-top: 40px;
    }

    .hero-buttons {
        display: flex !important;
        justify-content: center;
        margin-top: 2rem !important;
    }

    .hero-buttons .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }

    .service-card {
        height: 450px;
    }

    .service-img-wrapper {
        height: 100%;
    }

    .branch-image {
        height: 200px;
    }

    .about-img {
        max-height: 400px;
        object-fit: cover;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 90%;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    /* Fix for very long hero strings */
    .hero-title {
        font-size: 1.4rem !important;
        letter-spacing: 0px !important;
    }

    .hero-association {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        /* 1 column on very small phones */
    }

    .gallery-masonry {
        columns: 1 !important;
    }

    .hide-on-mobile {
        display: none !important;
    }
}

/* Extra Narrow Mobile Fix (e.g. iPhone SE) */
@media screen and (max-width: 380px) {
    .hero-title {
        font-size: 1.1rem !important;
    }

    .hero-subtitle-main {
        font-size: 1.6rem !important;
    }

    .hero-subtitle-sub {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
    }

    .navbar-logo {
        max-height: 35px !important;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-back-btn {
    display: none;
    padding: 8px 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .nav-links-simple .nav-link {
        display: none;
    }

    .navbar-simple .mobile-menu-btn {
        display: block !important;
        color: var(--color-text-main);
    }

    .navbar-simple .mobile-back-btn {
        display: block !important;
    }
}

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    padding: 80px 0 40px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 5%;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-main);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.mobile-links .btn {
    width: 80%;
    max-width: 300px;
    margin-top: 15px;
    padding: 15px !important;
    font-size: 1.1rem !important;
    justify-content: center;
}

.mobile-close-link {
    margin-top: 2rem !important;
    color: var(--color-primary) !important;
    font-size: 1.1rem !important;
    border: 1px solid var(--color-primary);
    padding: 10px 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-links a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Specific background positioning for group photos */
.hero-slide {
    background-position: center 20%;
    /* Show more of the top/heads */
}

/* Backgrounds for slides */
.hero-slide:nth-child(1) {
    background-image: url('homepage%20mobile.PNG');
}

@media screen and (min-width: 1025px) {
    .hero-slide:nth-child(1) {
        background-image: url('homepage%20image%20laptop.png');
        background-attachment: fixed; /* Parallax-like effect on desktop */
    }
}

.hero-slide:nth-child(2) {
    background-image: url('Gallery/2.jpeg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 60px;
    /* Offset for navbar */
}

/* Why Choose Us Slide Styling */
.why-us-slide h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Responsive Design Toggles */
.hide-on-mobile {
    display: block;
}

@media screen and (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .nav-logo-left {
        display: none !important; /* Hide by default on mobile top */
    }

    .navbar.scrolled .nav-logo-left {
        display: flex !important; /* Show only when scrolled */
    }
}

.hero-mobile-only {
    display: none;
}

.hero-desktop-only {
    display: block;
}

/* Mobile & Tablet: Show Sample Design */
@media screen and (max-width: 1024px) {
    .hero-mobile-only {
        display: block;
    }
    .hero-desktop-only {
        display: none;
    }
    
    .hero-slide:nth-child(1) {
        background-position: center center;
    }
}

/* Laptop & Desktop: Show Original Design */
@media screen and (min-width: 1025px) {
    .hero-mobile-only {
        display: none;
    }
    .hero-desktop-only {
        display: block;
    }
}

/* Sample Design Hero Styles */

.hero-design-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0; /* Remove padding to be in absolute corner */
    z-index: 10;
}

/* Global - Reset or Desktop Only if needed */
.hero-brand-top-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media screen and (max-width: 1024px) {
    .hero-brand-top-left {
        position: absolute !important;
        top: -160px !important; /* Moved down by 20px from -180px */
        left: -10px !important; /* Moved left by 10px */
        right: auto !important;
        margin-top: 0 !important;
        padding-left: 10px !important;
        padding-right: 0 !important;
        text-align: left !important; /* Restored text alignment to left */
        transform: none !important;
        z-index: 100;
    }
    .brand-main {
        font-size: 1.3rem !important; /* Smaller from 1.5rem */
        gap: 5px !important;
    }
    .brand-sub {
        font-size: 0.45rem !important; /* Slightly smaller from 0.5rem */
    }
    .brand-tag {
        font-size: 0.3rem !important; /* Smaller from 0.35rem */
    }
    .brand-inline-logo {
        height: 28px !important; /* Smaller from 30px */
    }
}

.brand-main {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    font-family: var(--font-heading);
    letter-spacing: -2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-inline-logo {
    height: 45px;
    width: auto;
    border-radius: 50%;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.brand-char-red { color: var(--color-primary); }
.brand-char-white { color: white; }

.brand-sub {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.brand-tag {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-circle-logo-top {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.hero-circle-logo-top img {
    height: 80px;
    width: auto;
}

.hero-content-sample {
    margin-top: 50px;
}

.hero-aff-label {
    display: block;
    font-size: 0.9rem;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-main-title {
    font-size: clamp(1.4rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center; /* Centering the text */
    width: 100%;
}

.hero-main-title span {
    display: block; /* Placing them on separate lines and centering */
}

.red-text-shifted,
.text-red {
    color: var(--color-primary);
    padding-left: 35px; /* Shifting 'Karate-Do' even more to the right */
}

.white-text { color: white; }
.hero-japanese-logo-mobile,
.hero-japanese-logo-desktop {
    display: inline-block;
    height: 1.2em; /* Auto-scale with Karate-Do text height */
    width: auto;
    vertical-align: middle;
    margin-left: 10px;
}

/* Ensure Karate-Do and Japanese Logo are on one line */
.red-text {
    color: var(--color-primary);
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
}

.hero-japanese-logo {
    display: none; /* Hide the Japanese logo in this specific spot */
}

.triangle-icon {
    display: inline-block;
    width: 35.5px;
    height: 35.5px;
    background: conic-gradient(
        #00bfff 0deg 120deg, 
        #32cd32 120deg 240deg, 
        #e60000 240deg 360deg
    );
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: 2px solid white;
    vertical-align: middle;
}

.hero-assoc-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.hero-tradition-text {
    font-size: 0.9rem;
    color: white;
    font-style: italic;
    opacity: 0.8;
    white-space: nowrap; /* Force one line */
}

.hero-buttons-sample {
    margin-top: 3rem;
}

.btn-pill-red {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 15px 45px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: capitalize;
    box-shadow: 0 10px 20px rgba(230, 0, 0, 0.3);
    transition: var(--transition-fast);
}

.btn-pill-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.5);
    background-color: var(--color-primary-dark);
}

@media screen and (max-width: 768px) {
    .hero-omf-logo { font-size: 1.8rem; }
    .hero-circle-logo-top img { height: 60px; }
    .hero-assoc-title { font-size: 1.2rem; }
    .hero-tradition-text { 
        font-size: 0.85rem; /* Enlarged from 0.75rem while keeping one line */
        white-space: nowrap;
        margin-top: 5px; /* Shifted down slightly */
    }
    .btn-pill-red { padding: 12px 35px; font-size: 1.1rem; }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important; /* Fluid typography to prevent overflow */
        line-height: 1.2;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem) !important;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    /* Fix Stars of the Month title overflow */
    .stars-of-the-month .section-title {
        font-size: clamp(1.4rem, 6.5vw, 1.8rem) !important;
        white-space: normal !important;
        line-height: 1.3;
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    /* Optimize stats grid stacking */
    .stats-grid {
        grid-template-columns: 1fr !important; /* Single column for narrow mobile */
        gap: 15px !important;
    }

    .why-us-slide h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

.why-us-list {
    list-style: none;
    display: inline-block;
    text-align: left;
    max-width: 600px;
}

.why-us-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.5s ease-out;
}

.hero-slide.active .why-us-item {
    transform: translateX(0);
    opacity: 1;
}

.why-us-item i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.why-us-item:nth-child(1) {
    transition-delay: 0.2s;
}

.why-us-item:nth-child(2) {
    transition-delay: 0.3s;
}

.why-us-item:nth-child(3) {
    transition-delay: 0.4s;
}

.why-us-item:nth-child(4) {
    transition-delay: 0.5s;
}

.why-us-item:nth-child(5) {
    transition-delay: 0.6s;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle-main {
    font-family: var(--font-varsity);
    font-size: clamp(1.8rem, 8vw, 5rem);
    /* Reduced minimum from 2.5rem to 1.8rem */
    font-weight: 900;
    line-height: 1;
    letter-spacing: clamp(1px, 2vw, 12px);
    /* Reduced minimum letter-spacing */
    margin-bottom: 0.5rem;
    -webkit-text-stroke: 1.5px currentColor;
}

.hero-subtitle-sub {
    font-size: clamp(0.9rem, 4vw, 1.4rem);
    margin-top: 5px;
    letter-spacing: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--color-text-main);
    opacity: 0.8;
}

.hero-affiliation-label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-main);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: var(--font-varsity);
    font-size: clamp(1.1rem, 6vw, 2.5rem);
    /* Reduced minimum from 1.4rem to 1.1rem */
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    -webkit-text-stroke: 1.5px currentColor;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title span {
    display: block;
}

.hero-association {
    font-family: var(--font-varsity);
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    color: var(--color-text-main);
    letter-spacing: clamp(2px, 1vw, 5px);
    margin-bottom: 0.5rem;
    /* Group with description below */
    text-align: center;
    -webkit-text-stroke: 0.5px currentColor;
    opacity: 0.9;
    width: 100%;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}



.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-main);
    /* Changed to white */
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-style: italic;
    opacity: 1;
    /* Pure white */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--color-primary);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media screen and (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 20px rgba(230, 0, 0, 0.3);
}

.exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

.section-text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-us {
    background-color: var(--color-bg-secondary);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-image {
    position: relative;
}

.why-us-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.why-us-features {
    list-style: none;
    margin-top: 2rem;
}

.why-us-feature-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.why-us-feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.why-us-feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.3);
}

.why-us-feature-text {
    font-size: 1.1rem;
    font-weight: 500;
}

@media screen and (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================================================
   Achievements Section
   ========================================================================== */
.achievements-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

@media screen and (max-width: 992px) {
    .achievements-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.achievements-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievements-carousel {
    width: 100%;
    height: 500px; /* Standardize height */
}

.achievements-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom Navigation for Achievements */
.achievement-next,
.achievement-prev {
    color: white !important;
    background: rgba(230, 0, 0, 0.7);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    transform: translateY(-50%);
}

.achievement-next:after,
.achievement-prev:after {
    font-size: 1rem !important;
    font-weight: bold;
}

.achievement-pagination {
    bottom: 20px !important;
}

.achievement-pagination .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.achievement-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
    width: 20px;
    border-radius: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: grayscale(50%);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.stat-card {
    background-color: var(--color-bg-card);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: normal;
}

/* ==========================================================================
   Services Section (Classes)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.service-card {
    background-color: var(--color-bg-main);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 0, 0, 0.3);
}

.service-img-wrapper {
    position: absolute;
    inset: 0;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
}

.personal-training-img {
    object-position: 50% -20px !important;
}

.img-pos-bottom {
    object-fit: cover !important;
    object-position: center 20% !important; /* Shows more of the top/heads by shifting the focus down */
    padding: 0; 
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05); /* Restore default zoom */
}

.service-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 12px;
}

/* ==========================================================================
   Branches Section
   ========================================================================== */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.branch-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.branch-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.branch-image {
    height: 250px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.branch-card:hover .branch-image img {
    transform: scale(1.1);
}

.branch-info {
    padding: 2rem;
}

.branch-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.branch-info p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Trainers Section
   ========================================================================== */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.trainer-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trainer-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.trainer-img-wrapper {
    height: 350px;
    overflow: hidden;
}

.trainer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.trainer-card:hover .trainer-img-wrapper img {
    transform: scale(1.05);
}

.trainer-img-top {
    object-position: top !important;
}

.trainer-img-sinan {
    object-position: top -7px !important;
}

.trainer-img-mohasin {
    object-position: center 10px !important;
}


.trainer-info {
    padding: 2rem;
    text-align: center;
}

.trainer-rank-honor {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.trainer-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    line-height: 1.2;
}

.trainer-role {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: none; /* Changed from capitalize to allow lowercase */
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.trainer-desc {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.trainer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.trainer-socials a {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.trainer-socials a:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--color-text-muted);
    margin: 0;
}

.map-link,
.phone-link,
.email-link {
    color: var(--color-text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

.map-link:hover,
.phone-link:hover,
.email-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-card);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: var(--color-bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-bg-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--color-text-main);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group select option {
    background-color: var(--color-bg-card);
    color: var(--color-text-main);
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #000;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo p {
    color: var(--color-text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-logo-img {
    max-height: 100px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
    mix-blend-mode: lighten;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Reveal Classes
   ========================================================================== */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
}

.reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

/* Default fade up */
.reveal:not(.from-left):not(.from-right) {
    transform: translateY(40px);
}

.from-left {
    transform: translateX(-50px);
}

.from-right {
    transform: translateX(50px);
}

/* ==========================================================================
   Responsive Design (Media Queries)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .container {
        width: 85%;
    }

    .hero-subtitle-main {
        font-size: 4rem;
        letter-spacing: 8px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .about-grid,
    .achievements-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-image {
        min-height: 400px;
        order: -1;
    }

    .trainers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo p {
        margin: 1rem auto;
    }

    .footer-logo-img {
        margin: 0 auto 1rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-subtitle-main {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-association {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .services-grid,
    .trainers-grid,
    .branches-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .experience-badge {
        bottom: -10px;
        right: -10px;
        padding: 1.5rem;
    }

    .exp-number {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-subtitle-main {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-subtitle-sub {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .hero-association {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .gallery-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .achievements-image {
        min-height: 280px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
        min-width: unset;
    }

    .padding-y {
        padding: 3.5rem 0;
    }

    .experience-badge {
        bottom: 0px;
        right: 0px;
        transform: translate(5%, 5%);
    }

    .contact-info {
        padding: 1rem 0;
    }

    .registration-card {
        padding: 2rem 1rem !important;
    }
}

/* ==========================================================================
   Registration Form Enhancements (Signature & Print)
   ========================================================================== */
.signature-container {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

#signaturePad {
    width: 100%;
    height: 200px;
    background: #000;
    cursor: crosshair;
    touch-action: none;
    display: block;
    border-radius: 4px;
}

.signature-actions {
    display: flex;

    .hero-title {
        font-size: 1.5rem;
    }

    .about-grid,
    .achievements-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-image {
        min-height: 400px;
        order: -1;
    }

    .trainers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo p {
        margin: 1rem auto;
    }

    .footer-logo-img {
        margin: 0 auto 1rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-subtitle-main {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-association {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .services-grid,
    .trainers-grid,
    .branches-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .experience-badge {
        bottom: -10px;
        right: -10px;
        padding: 1.5rem;
    }

    .exp-number {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-subtitle-main {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-subtitle-sub {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .hero-association {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .gallery-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .achievements-image {
        min-height: 280px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
        min-width: unset;
    }

    .padding-y {
        padding: 3.5rem 0;
    }

    .experience-badge {
        bottom: 0px;
        right: 0px;
        transform: translate(5%, 5%);
    }

    .contact-info {
        padding: 1rem 0;
    }

    .registration-card {
        padding: 2rem 1rem !important;
    }
}

/* ==========================================================================
   Registration Form Enhancements (Signature & Print)
   ========================================================================== */
.signature-container {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

#signaturePad {
    width: 100%;
    height: 200px;
    background: #000;
    cursor: crosshair;
    touch-action: none;
    display: block;
    border-radius: 4px;
}

.signature-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* Print Layout */
/* Official Admission Form - Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    #printableForm,
    #printableForm * {
        visibility: visible;
    }

    @page {
        size: A4;
        margin: 0;
    }

    #printableForm {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        color: black !important;
        padding: 10mm 15mm;
        font-family: Arial, sans-serif;
        box-sizing: border-box;
    }

    .omf-red {
        color: #e60000;
        font-weight: 900;
    }

    .admission-header {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-bottom: 3.3mm;
    }

    .admission-logo-left img {
        height: 60px;
    }

    .admission-title-center {
        text-align: center;
    }

    .arabic-main-title {
        color: #e60000;
        font-size: 20pt;
        font-weight: bold;
        line-height: 1.1;
    }

    .english-main-title {
        font-size: 22pt;
        font-weight: 900;
        line-height: 1;
        margin: 2px 0;
    }

    .admission-subheader {
        text-align: center;
        border-top: 1.5px solid #000;
        margin-top: 3.3mm;
        padding-top: 1.7mm;
    }

    .english-sub {
        font-size: 16pt;
        font-weight: 900;
        text-decoration: underline;
    }

    .admission-fields-container {
        border: 1.2pt solid #000;
        border-radius: 6px;
        padding: 10px;
        margin-top: 2.7mm;
        background: #fff;
    }

    .field-row {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
        gap: 12px;
    }

    .field-label {
        font-size: 8.5pt;
        font-weight: 800;
        width: 180px;
        text-transform: uppercase;
        color: #000;
    }

    .data-box {
        display: flex;
        align-items: center;
        flex: 1;
        border: 0.8pt solid #333;
        height: 28px;
        background: #fff;
        padding: 0 10px;
        font-size: 9pt;
        font-weight: 700;
        color: #000;
    }
}

/* ==========================================================================
   International Tel Input (Global Dark Theme)
   ========================================================================== */
.iti {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

.iti__selected-dial-code {
    color: #fff !important;
    font-weight: 600;
}

.iti__country-list {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    z-index: 9999 !important;
}

.iti__country {
    color: #fff !important;
}

.iti__country:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   Registration Page Refined Styles (Premium Look & High Visibility)
   ========================================================================== */
.registration-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7) 0%, #050505 100%);
    z-index: 1;
}

.registration-hero .hero-title {
    font-size: 4rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.registration-hero .hero-description {
    font-size: 1.25rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Official Form Header Styling */
.official-form-header {
    margin-bottom: 4rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.header-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.side-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.header-main-content {
    flex-grow: 1;
}

.arabic-header {
    font-family: 'Outfit', sans-serif;
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    direction: rtl;
}

.english-header {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    color: white;
    margin-bottom: 0.2rem;
}

.discipline-header {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #999;
    margin-bottom: 1rem;
}

.header-info {
    font-size: 0.95rem;
    color: #777;
    font-weight: 600;
}

.form-title-badge {
    display: inline-block;
    background: var(--color-primary);
    padding: 1rem 3rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.3);
    margin-top: 1rem;
}

.form-title-badge .arabic-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: -5px;
}

.form-title-badge .english-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
}

/* Terms Styling */
.terms-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2.5rem;
    border-left: 5px solid var(--color-primary);
    margin: 2rem 0 4rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.terms-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    display: flex;
    gap: 15px;
}

.terms-text i {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-top: 5px;
}

.terms-text strong {
    color: var(--color-primary);
    font-weight: 800;
}

.label-hint {
    font-size: 0.75rem;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 5px;
}

@media screen and (max-width: 600px) {
    .header-logos {
        flex-direction: column;
        gap: 1.5rem;
    }

    .english-header {
        font-size: 2.5rem;
    }

    .arabic-header {
        font-size: 1.5rem;
    }
}

.registration-section {
    margin-top: -120px;
    position: relative;
    z-index: 10;
    padding-bottom: 5rem;
}

.registration-form-container {
    max-width: 950px;
    margin: 0 auto;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(30px);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
}

.premium-form .form-section-header {
    margin: 3.5rem 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.premium-form .form-section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

.premium-form .form-section-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2.5rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 1rem;
    display: block;
    font-weight: 800;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 22px;
    color: #e60000;
    font-size: 1.2rem;
    transition: 0.3s;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 18px 22px;
    color: white;
    border-radius: 12px;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-with-icon input {
    padding-left: 60px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #e60000;
    box-shadow: 0 0 30px rgba(230, 0, 0, 0.5);
    outline: none;
}

.input-with-icon input:focus+i {
    color: white;
    transform: scale(1.2);
}

/* Premium Select Styling */
.premium-select-wrapper {
    position: relative;
    width: 100%;
}

.premium-select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.2rem;
    pointer-events: none;
    transition: 0.3s;
}

.premium-select-wrapper:focus-within::after {
    color: white;
    transform: translateY(-50%) rotate(180deg);
}

.premium-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.premium-select:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.2);
}

.premium-select option {
    background: #0a0a0a;
    color: white;
    padding: 20px;
    font-size: 1rem;
}

/* Selectable Tiles for Disciplines */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
}

.discipline-tile {
    position: relative;
    cursor: pointer;
}

.discipline-tile input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.tile-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.tile-content i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

.tile-name {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.discipline-tile:hover .tile-content {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.discipline-tile input:checked+.tile-content {
    background: linear-gradient(135deg, var(--color-primary) 0%, #b30000 100%);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.4);
}

.discipline-tile input:checked+.tile-content i,
.discipline-tile input:checked+.tile-content .tile-name {
    color: white;
}

.discipline-tile input:checked+.tile-content i {
    transform: scale(1.1);
}

/* Program Selection */
.program-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.program-card {
    cursor: pointer;
}

.program-card input {
    display: none;
}

.program-card-content {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.program-icon-wrapper {
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: var(--color-primary);
    transition: 0.4s;
}

.program-card:hover .program-card-content {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.program-card input:checked+.program-card-content {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.3) 0%, rgba(139, 0, 0, 0.3) 100%);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(230, 0, 0, 0.4);
}

.program-card input:checked+.program-card-content .program-icon-wrapper {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: flex-start;
    /* Change to flex-start for scrollability */
    z-index: 9999;
    backdrop-filter: blur(15px);
    overflow-y: auto;
    /* Allow overlay itself to scroll */
    padding: 2rem 0;
    /* Add padding for scroll room */
}

.modal-overlay.active {
    display: flex;
}

.success-modal {
    background: #1a1a1a;
    padding: 3rem;
    /* Slightly reduced padding */
    border-radius: 20px;
    /* More standard border-radius */
    max-width: 600px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 2rem;
}

/* Office Use Section */
.office-use-only-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    margin-top: 4rem;
    position: relative;
}

.office-use-only-section h4 {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    padding: 0 20px;
    color: #e60000;
    font-size: 1.1rem;
    letter-spacing: 3px;
    font-weight: 900;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .registration-hero .hero-title {
        font-size: 3rem;
    }

    .registration-form-container {
        padding: 2.5rem;
        border-radius: 0;
    }

    .form-grid,
    .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .registration-section {
        margin-top: 0;
    }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.success-modal {
    background: #1a1a1a;
    border: 1px solid var(--color-primary);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .success-modal {
    transform: translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.4);
}

.success-modal h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.success-modal p {
    color: #999;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ==========================================================================
   International Tel Input (Global Styles)
   ========================================================================== */
.iti {
    width: 100%;
    display: block;
    margin-bottom: 5px;
}

.iti__selected-dial-code {
    color: #fff !important;
    /* Force white for selected dial code */
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-left: 4px;
}

.iti__country-list {
    background-color: #1a1a1a !important;
    /* Dark background for white text */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    z-index: 2000 !important;
    margin-top: 5px !important;
}

.iti__country {
    padding: 10px 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    color: #fff !important;
}

.iti__country:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.iti__country-name {
    color: #fff !important;
    /* Force white for country names */
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.iti__dial-code {
    color: #bbb !important;
    /* Light grey for list dial codes */
    margin-left: 10px !important;
}

/* ==========================================================================
   Registration Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    /* Near solid black to hide any background bleed-through */
    background-image: none !important;
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.registration-modal-content {
    background: var(--color-bg-main);
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 24px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(230, 0, 0, 0.25);
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.modal-body {
    width: 100%;
    height: 100%;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Success Modal Refinements */
.success-modal {
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(230, 0, 0, 0.3);
}

.pdf-preview-container {
    margin: 1rem 0 2rem;
    height: 350px;
    background: #fff;
    /* White background for document feel */
    border-radius: 8px;
    overflow-y: auto;
    border: 1px solid #ddd;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    color: #333;
    font-size: 0.7rem;
    /* Miniature look */
}

.preview-section {
    margin-top: 1.5rem;
}

.preview-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Registration Page Refined Styles (Premium Look & High Visibility)
   ========================================================================== */
.registration-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7) 0%, var(--color-bg-main) 100%);
    z-index: 1;
}

.registration-hero .hero-title {
    font-size: 4rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.registration-hero .hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.registration-section {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding-bottom: 5rem;
}

.registration-form-container {
    max-width: 950px;
    margin: 0 auto;
    background: rgba(17, 17, 17, 0.95);
    /* More solid for better contrast */
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.premium-form .form-section-header {
    margin: 6rem 0 3.5rem;
    /* Increased top/bottom separation */
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.premium-form .form-section-header:first-child {
    margin-top: 0;
}

.premium-form .form-section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.premium-form .form-section-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.premium-form .form-section-header i {
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--color-primary), #ff4d4d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem 2.5rem;
}

/* International Tel Input Premium Fixes */
.premium-form .iti {
    width: 100%;
    grid-column: span 12;
}

.premium-form .iti__flag-container {
    padding: 2px;
}

.premium-form .iti__selected-flag {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px 0 0 12px;
    padding-left: 15px !important;
}

.premium-form .iti__country-list {
    background-color: #1a1a1a !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(20px);
    z-index: 10000;
}

.premium-form .iti__country:hover {
    background-color: rgba(230, 0, 0, 0.2) !important;
}

.premium-form .iti__country-name,
.premium-form .iti__dial-code {
    color: #fff !important;
}

.premium-form .iti input {
    padding-left: 95px !important;
    width: 100% !important;
}

.form-group.span-12 {
    grid-column: span 12;
}

.form-group.span-8 {
    grid-column: span 8;
}

.form-group.span-6 {
    grid-column: span 6;
}

.form-group.span-4 {
    grid-column: span 4;
}

.form-group.span-3 {
    grid-column: span 3;
}

.discipline-section.span-12 {
    grid-column: span 12;
}

.signature-section.span-12 {
    grid-column: span 12;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem 2.5rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
    display: block;
    font-weight: 700;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 20px;
    color: var(--color-primary);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    /* Defined but premium */
    padding: 15px 20px;
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-with-icon input {
    padding-left: 55px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.3), inset 0 0 0 1px rgba(230, 0, 0, 0.2);
    outline: none;
}

.input-with-icon input:focus+i {
    color: white;
    transform: scale(1.1);
}

.phone-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.3);
}

.phone-input span {
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 52px;
    display: flex;
    align-items: center;
}

.phone-input input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Program Selection */
.program-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.program-card {
    cursor: pointer;
}

.program-card input {
    display: none;
}

.program-card-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.program-icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: var(--color-primary);
    transition: 0.3s;
}

.program-card-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: white;
}

.program-card-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.program-card:hover .program-card-content {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.program-card input:checked+.program-card-content {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.2) 0%, rgba(139, 0, 0, 0.2) 100%);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.2);
}

.program-card input:checked+.program-card-content .program-icon-wrapper {
    background: var(--color-primary);
    color: white;
}

/* Agreement & Button */
.agreement-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-checkbox {
    display: flex;
    gap: 15px;
    cursor: pointer;
}

.custom-checkbox input {
    margin-top: 5px;
}

.custom-checkbox p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.form-actions {
    margin-top: 4rem;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.2rem;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--color-primary), #ff4d4d);
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-lg:hover::before {
    left: 100%;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    /* Force full viewport height */
    background: rgba(255, 255, 255, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* Ensure it stays on top */
    backdrop-filter: blur(25px);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.success-modal {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 30px;
    max-width: 500px;
    /* Reset to compact professional width */
    width: 90%;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .success-modal {
    transform: translateY(0);
    opacity: 1;
}

.success-icon {
    font-size: 5rem;
    background: linear-gradient(45deg, #28a745, #85e085);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(40, 167, 69, 0.3));
}

.success-modal h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.success-modal p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 15px;
}

.nav-back-btn {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
}

.nav-logo-right {
    margin-right: auto;
}

.success-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Media Queries for Registration */
@media screen and (max-width: 992px) {
    .registration-form-container {
        padding: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .registration-hero .hero-title {
        font-size: 2.8rem;
    }

    .registration-form-container {
        padding: 2rem;
        border-radius: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .registration-section {
        margin-top: 0;
    }
}

/* Missing Registration Styles */
.section-header-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.step-number {
    background: var(--color-primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
}

.declaration-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 1.5rem;
}

.declaration-content .lang-ar {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.office-use-only-section {
    background: rgba(255, 255, 255, 0.04);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    /* Match form theme */
    margin-top: 5rem;
    position: relative;
}

.office-use-only-section h4 {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    padding: 0 20px;
    color: var(--color-primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 800;
}

/* Digital Signature Pad Styles */
.signature-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.signature-container:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Print Styles (Admission Form)
   ========================================================================== */
.print-only {
    display: none;
}

@media print {

    /* Completely hide all site elements */
    .modal-overlay,
    .navbar,
    .footer,
    .registration-form-container,
    .mobile-menu-overlay,
    .signature-section button,
    form,
    header {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #print-template {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        width: 210mm;
        /* A4 Width */
        height: auto;
        min-height: 297mm;
        /* A4 Height */
        background: white !important;
        color: black !important;
        padding: 10mm;
        box-sizing: border-box;
    }

    /* Outer Wrapper with Red Border */
    .print-wrapper {
        border: 2px solid #e60000;
        border-radius: 40px;
        padding: 5mm;
        height: calc(100% - 20mm);
        position: relative;
    }

    /* Ensure backgrounds and colors print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Header Styling */
    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .print-header img {
        width: 80px;
        height: auto;
    }

    .print-header-center {
        text-align: center;
        flex-grow: 1;
    }

    .print-header-center h1 {
        font-size: 28pt;
        color: #e60000;
        margin: 0;
        font-weight: 900;
        font-family: 'Arial Black', sans-serif;
    }

    .print-header-center .arabic-title {
        font-size: 22pt;
        color: #e60000;
        margin-bottom: 5px;
        direction: rtl;
    }

    .print-header-center h2 {
        font-size: 18pt;
        letter-spacing: 2px;
        margin: 0;
    }

    .print-contact-info {
        font-size: 9pt;
        margin-top: 5px;
    }

    .print-admission-title {
        text-align: center;
        margin: 15px 0;
        position: relative;
    }

    .print-admission-title .arabic-sub {
        font-size: 16pt;
        display: block;
        margin-bottom: 5px;
        direction: rtl;
    }

    .print-admission-title h3 {
        font-size: 14pt;
        text-decoration: underline;
        margin: 0;
        font-weight: bold;
    }

    /* Grid/Box System */
    .print-field-row {
        display: flex;
        align-items: flex-end;
        margin-bottom: 12px;
        gap: 15px;
    }

    .print-label-cell {
        font-size: 8pt;
        font-weight: bold;
        min-width: 120px;
        text-transform: uppercase;
        line-height: 1.2;
    }

    .print-label-cell small {
        display: block;
        font-size: 6pt;
        font-weight: normal;
    }

    .print-boxes-container {
        display: flex;
        flex-grow: 1;
        border: 1pt solid #000;
        height: 24px;
        padding: 0 8px;
        align-items: center;
        background: transparent;
        /* Remove "grid" look */
    }

    .print-box-unit {
        flex: none;
        border-right: none;
        /* Removed grid borders */
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-family: 'Courier New', monospace;
        font-size: 12pt;
        font-weight: bold;
        letter-spacing: 2px;
    }

    .print-box-unit:last-child {
        border-right: none;
    }

    .print-unit-fixed {
        width: 22px;
        flex: none;
    }

    /* Program Selection Gaps */
    .print-programs-row {
        display: flex;
        justify-content: space-between;
        margin: 20px 0;
        padding: 0 10px;
    }

    .print-program-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 800;
        font-size: 10pt;
    }

    .print-checkbox-box {
        width: 40px;
        height: 22px;
        border: 1pt solid #000;
    }

    /* Agreement Section */
    .print-agreement-block {
        margin-top: 20px;
        border-top: 1pt dashed #000;
        padding-top: 15px;
        display: flex;
        justify-content: space-between;
        gap: 30px;
    }

    .print-agreement-text {
        font-size: 8pt;
        width: 48%;
        line-height: 1.4;
    }

    .print-agreement-text.arabic {
        direction: rtl;
        text-align: right;
    }

    /* Signature Area */
    .print-signature-section {
        margin-top: 25px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .print-sig-col {
        width: 30%;
        text-align: center;
    }

    .print-emergency-col {
        width: 35%;
        text-align: center;
        padding-top: 10px;
    }

    .print-sig-line {
        border-top: 1pt solid #000;
        margin-top: 10px;
        padding-top: 5px;
        font-size: 8pt;
        font-weight: bold;
    }

    .print-sig-line-arabic {
        display: block;
        direction: rtl;
        font-size: 10pt;
    }

    /* Office Use Only - Modern Red Box */
    .print-office-box {
        margin-top: 30px;
        border: 2px solid #e60000;
        border-radius: 20px;
        padding: 15px;
        position: relative;
    }

    .print-office-box h4 {
        position: absolute;
        top: -10pt;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        padding: 0 15px;
        font-size: 12pt;
        font-weight: 900;
        text-decoration: underline;
    }

    .print-office-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 10px 30px;
        font-size: 10pt;
    }

    .print-office-line {
        border-bottom: 1pt dotted #000;
        display: flex;
        justify-content: space-between;
    }
}

/* Fix for Signature Reveal & Professional Look */
.signature-container {
    min-height: 220px;
}

.form-group.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Force signature pad group to be visible if it fails reveal */
.signature-pad-group {
    opacity: 1 !important;
    transform: none !important;
    min-height: 250px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Professional Registration Form Styles
   ========================================================================== */
.registration-section {
    background: radial-gradient(circle at top right, rgba(230, 0, 0, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(230, 0, 0, 0.05), transparent),
        var(--color-bg-main);
    min-height: 100vh;
    padding-top: 120px;
}

.registration-container {
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
    padding: 4rem;
    max-width: 950px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.registration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--color-primary);
}

.registration-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.registration-logo {
    max-height: 120px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.registration-header h1 {
    font-size: 3rem;
    letter-spacing: 8px;
    margin-bottom: 0.5rem;
    font-family: var(--font-varsity);
    color: var(--color-text-main);
    text-shadow: 2px 2px 0 var(--color-primary);
}

.registration-header p {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.1rem;
}

.registration-form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem 2rem;
}

.form-row {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.span-12 {
    grid-column: span 12;
}

.span-8 {
    grid-column: span 8;
}

.span-6 {
    grid-column: span 6;
}

.span-4 {
    grid-column: span 4;
}

.span-3 {
    grid-column: span 3;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.1);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.input-with-prefix:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.1);
}

.input-with-prefix span {
    padding: 14px 18px;
    background-color: rgba(230, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1rem;
}

.input-with-prefix input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1;
}

.discipline-section {
    grid-column: span 12;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 1.5rem 0;
}

.section-label {
    display: block;
    margin-bottom: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.2rem;
    text-align: center;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.checkbox-item {
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.4s ease;
    width: 100%;
}

.card-content i {
    font-size: 2rem;
    color: var(--color-text-muted);
    transition: all 0.4s ease;
}

.card-content span {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* Checked State */
.checkbox-item input:checked~.card-content {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.15), rgba(230, 0, 0, 0.05));
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.2),
        inset 0 0 15px rgba(230, 0, 0, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.checkbox-item input:checked~.card-content i {
    color: var(--color-primary);
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(230, 0, 0, 0.5));
}

.checkbox-item input:checked~.card-content span {
    color: white;
}

/* Hover State */
.checkbox-item:hover .card-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Add a checkmark indicator when selected */
.checkbox-item input:checked~.card-content::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--color-primary);
    font-size: 1.2rem;
    animation: scaleIn 0.3s ease-out;
}

.nav-back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-back-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav-back-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

.nav-back-link:hover i {
    transform: translateX(-5px);
}

.signature-section {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 1.5rem 0;
    width: 100%;
}

.signature-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signature-container-wrapper label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.signature-pad-container {
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 220px;
    cursor: crosshair;
    overflow: hidden;
}

.signature-pad-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.btn-clear {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(230, 0, 0, 0.15);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-clear:hover {
    background: var(--color-primary);
    color: white;
}

@media screen and (max-width: 768px) {
    .signature-section {
        grid-template-columns: 1fr;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.form-agreement {
    grid-column: span 12;
    margin: 2rem 0;
    padding: 2rem;
    background-color: rgba(230, 0, 0, 0.03);
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.form-agreement p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.form-actions {
    grid-column: span 12;
    margin-top: 1.5rem;
}

.btn-premium {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

@media screen and (max-width: 992px) {
    .registration-container {
        padding: 3rem 2rem;
    }

    .checkbox-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .registration-section {
        padding-top: 100px;
    }

    .registration-header h1 {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .registration-form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-group {
        grid-column: span 12 !important;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .registration-container {
        padding: 2rem 1.5rem;
    }
}

/* International Telephone Input Professional Refinements */
.iti {
    width: 100%;
    margin-top: 5px;
}

.iti__flag-container {
    padding-left: 14px !important;
    padding-right: 8px !important;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.iti__selected-flag {
    background-color: rgba(255, 255, 255, 0.03) !important;
    padding: 0 15px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 100%;
    transition: all 0.3s ease;
}

.iti__selected-flag:hover {
    background-color: rgba(230, 0, 0, 0.1) !important;
}

.iti__country-list {
    background-color: #121212 !important;
    border: 1px solid rgba(230, 0, 0, 0.4) !important;
    border-radius: 12px !important;
    color: white !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8) !important;
    margin-top: 8px !important;
    padding: 10px 0 !important;
    max-width: 320px !important;
    z-index: 10000 !important;
    overflow-x: hidden !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.iti__country {
    padding: 12px 18px !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.iti__country:last-child {
    border-bottom: none;
}

.iti__country:hover,
.iti__country--highlight {
    background-color: rgba(230, 0, 0, 0.3) !important;
}

.iti__country-name,
.iti__dial-code {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

.iti__dial-code {
    color: rgba(255, 255, 255, 0.6) !important;
    margin-left: 8px !important;
}

.iti__arrow {
    border-top-color: rgba(255, 255, 255, 0.6) !important;
    margin-left: 10px !important;
}

.iti__arrow--up {
    border-bottom-color: rgba(255, 255, 255, 0.6) !important;
}

/* Input Styles for ITI */
.iti input {
    height: 52px !important;
    padding-left: 130px !important;
    /* Increased for a wider gap */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.iti__selected-dial-code {
    margin-left: 8px !important;
    margin-right: 12px !important;
}

.iti input:focus {
    border-color: var(--color-primary) !important;
    background: rgba(230, 0, 0, 0.05) !important;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.2) !important;
}

/* Live Validation States */
.iti.iti-valid input {
    border-color: #28a745 !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.1) !important;
}

.iti.iti-invalid input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.1) !important;
}

/* Refined Success Modal - Professional & Premium */
.success-modal.glass-modal {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: modalReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon-premium {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), #8b0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.3);
    animation: iconBounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes iconBounce {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.success-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
    letter-spacing: -0.5px;
}

.success-header p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    font-size: 1.1rem;
}

.success-body-minimal {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.success-body-minimal p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.success-footer-premium {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.btn-premium-action {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.2);
}

.btn-premium-action:hover {
    background: #ff1a1a;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.4);
}

.btn-text-action {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-text-action:hover {
    color: white;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   Registration Page Styles
   ========================================================================== */
.registration-section {
    padding: 120px 0 80px;
    background-color: var(--color-bg-main);
}

.registration-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-secondary);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(230, 0, 0, 0.05);
}

.iti {
    width: 100%;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.discipline-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    background: var(--color-bg-card);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.discipline-checkbox:hover {
    border-color: var(--color-primary);
}

.discipline-checkbox input {
    width: auto;
    cursor: pointer;
}

.submit-container {
    margin-top: 3rem;
    text-align: center;
}

/* Accreditations Section */
.accreditations {
    background-color: #111;
    position: relative;
    z-index: 1;
}

.accreditation-tag {
    display: inline-block;
    background: #4FB3B3; /* Teal/Cyan color from image */
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    border-radius: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.accreditation-title {
    font-family: var(--font-varsity);
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    text-transform: capitalize;
}

.accreditations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.accreditation-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1); /* Dashed border like in image */
    border-radius: 10px;
    padding: 3rem 2rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accreditation-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(79, 179, 179, 0.5);
}

.accreditation-logo {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.accreditation-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.approved-by {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.accreditation-name {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

/* Responsive Accreditations */
@media screen and (max-width: 768px) {
    .accreditations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .accreditation-title {
        font-size: 1.8rem;
    }
    
    .accreditation-card {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .disciplines-grid {
        grid-template-columns: 1fr 1fr;
    }

    .registration-container {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Star of the Month Section
   ========================================================================== */
.stars-of-the-month {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stars-of-the-month .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.stars-carousel {
    padding: 20px 50px 60px 50px !important;
    margin: 0 -50px;
}

/* Custom Swiper Navigation */
.stars-carousel .swiper-button-next,
.stars-carousel .swiper-button-prev {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stars-carousel .swiper-button-next:after,
.stars-carousel .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.stars-carousel .swiper-button-next:hover,
.stars-carousel .swiper-button-prev:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* Custom Swiper Pagination */
.stars-carousel .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.stars-carousel .swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 10px;
}

.star-card {
    background: var(--color-bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.star-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(230, 0, 0, 0.5);
    box-shadow: 0 30px 60px rgba(230, 0, 0, 0.15);
}

.star-image-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.star-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.star-card:hover .star-image-container img {
    transform: scale(1.1);
}

.star-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    transition: background 0.5s ease;
}

.star-card:hover .star-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, rgba(230, 0, 0, 0.2) 60%, transparent 100%);
}

.star-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.star-badge i {
    font-size: 1rem;
    color: #000;
}

.star-info h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.star-info p {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.star-info .star-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
    max-width: 90%;
}

@media (max-width: 991px) {
    .stars-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .star-image-container {
        height: 450px;
    }
}

@media (max-width: 576px) {
    .star-image-container {
        height: 400px;
    }

    .star-info h3 {
        font-size: 1.8rem;
    }

    .star-overlay {
        padding: 1.5rem;
    }
}

/* Floating WhatsApp Widget */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsapp-pulse 2s infinite ease-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: rotate(10deg);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* On small screens, move it slightly */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}