/**
 * SCHOLAR GATE - Main Stylesheet
 * Dark Mode + Orange (#FFA500) Theme
 */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #FFA500;
    --primary-light: #FFB833;
    --primary-dark: #CC8400;
    --primary-glow: rgba(255, 165, 0, 0.3);
    
    /* Dark Theme */
    --bg-dark: #0D0D0D;
    --bg-card: #1A1A1A;
    --bg-card-hover: #242424;
    --bg-input: #2A2A2A;
    --border: #333333;
    --border-focus: #FFA500;
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #666666;
    
    /* Status */
    --success: #22C55E;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 10000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo span {
    color: var(--primary);
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
}

.nav-desktop a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--primary);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
    width: 100%;
}

/* Icon spacing for navigation */
.nav-desktop a i,
.mobile-menu a i {
    margin-right: 0.5rem;
    vertical-align: middle;
    font-size: 1rem;
    color: inherit;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Dropdown Menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu a {
    display: block;
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--primary);
}


/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow);
    color: var(--bg-dark);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: 
        radial-gradient(ellipse at 30% 20%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 40%),
        var(--bg-dark);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

.hero-media {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Country Cards */
.country-card {
    position: relative;
    overflow: hidden;
}

.country-card .country-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.country-card:hover::before {
    transform: scaleX(1);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--error);
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* File Input */
.file-upload {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(255, 165, 0, 0.05);
}

.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.file-upload-text {
    color: var(--text-secondary);
}

.file-upload-text span {
    color: var(--primary);
    font-weight: 600;
}

/* Checkbox */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-item:hover {
    border-color: var(--primary);
}

.checkbox-item.selected {
    border-color: var(--primary);
    background: rgba(255, 165, 0, 0.1);
}

.checkbox-item input {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-item.selected .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-item.selected .checkbox-custom::after {
    content: '✓';
    color: var(--bg-dark);
    font-weight: bold;
}

/* Form Messages */
.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-success {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

/* ===== REGISTRATION FORM ===== */
.register-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Payment Section */
.payment-section {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.payment-info {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-info h3 {
    color: var(--primary);
}

.bank-details {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-detail-label {
    color: var(--text-secondary);
}

.bank-detail-value {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== ADMIN STYLES ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-logo {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.admin-nav {
    list-style: none;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 165, 0, 0.1);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-input);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-approved {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-card h4 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop / Laptop (1024px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
}

/* Tablet Landscape (992px - 1023px) */
@media (max-width: 1024px) {
    .admin-sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.75rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --header-height: 70px;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-graphic {
        max-width: 350px;
        height: 280px;
        font-size: 6rem;
    }
    
    .hero-media {
        max-width: 350px;
        height: 280px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .register-form {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Mobile Landscape & Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --header-height: 65px;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .header .container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    /* Hide desktop nav, show hamburger */
    .nav-desktop {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
        padding-top: calc(var(--header-height) + 2rem);
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-graphic {
        max-width: 250px;
        height: 200px;
        font-size: 4rem;
    }
    
    .hero-media {
        max-width: 250px;
        height: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .register-form {
        padding: 1.25rem;
        margin: 0 -0.5rem;
        border-radius: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .file-upload {
        padding: 1.5rem 1rem;
    }
    
    .file-upload-icon {
        font-size: 2rem;
    }
    
    .payment-section {
        padding: 1.5rem;
    }
    
    .bank-details {
        padding: 1rem;
    }
    
    .bank-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .modal {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    :root {
        --header-height: 60px;
    }
    
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    
    body {
        font-size: 0.9375rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-graphic {
        max-width: 200px;
        height: 160px;
        font-size: 3rem;
        border-radius: 16px;
    }
    
    .hero-media {
        max-width: 200px;
        height: 160px;
        border-radius: 16px;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .register-form {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-section-title {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .country-card .country-flag {
        font-size: 2.5rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card h4 {
        font-size: 0.75rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    
}

/* ID Cards Grid - 3 column responsive */
.id-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 767px) {
    .id-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .id-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Extra Small (up to 375px) */
@media (max-width: 375px) {
    :root {
        --header-height: 56px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .header .container {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 0.95rem;
        gap: 0.4rem;
    }
    
    .logo span {
        display: inline;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
    }
    
    .hamburger span {
        width: 20px;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-graphic {
        max-width: 180px;
        height: 140px;
        font-size: 2.5rem;
    }
    
    .hero-media {
        max-width: 180px;
        height: 140px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .register-form {
        padding: 0.875rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.625rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Extra Small (up to 320px) */
@media (max-width: 320px) {
    .logo span {
        display: none;
    }
    
    .logo {
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1rem 0;
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-image {
        order: 0;
    }
    
    .hero-graphic {
        max-width: 150px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .hero-media {
        max-width: 150px;
        height: 120px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .sidebar,
    .hamburger {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* ===== Media / Vlog ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.media-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-input);
    overflow: hidden;
}

.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-thumb video {
    background: #000;
}

.media-body {
    padding: 1rem 1.25rem 1.25rem;
}

.media-body h3 {
    margin-bottom: 0.35rem;
}

.media-body p {
    margin: 0;
    color: var(--text-secondary);
}

/* ===== Vlog Cards ===== */
.vlog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vlog-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vlog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.vlog-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-input);
    overflow: hidden;
}

.vlog-card-thumb img,
.vlog-card-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vlog-card:hover .vlog-card-thumb img,
.vlog-card:hover .vlog-card-thumb video {
    transform: scale(1.05);
}

.vlog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--bg-input);
}

.vlog-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 165, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-dark);
    box-shadow: var(--shadow-md);
}

.vlog-card-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vlog-card-body {
    padding: 1.25rem;
}

.vlog-card-body h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.vlog-card-body p {
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.vlog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vlog-card-link {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.vlog-card:hover .vlog-card-link {
    color: var(--primary-light);
}

/* ===== Vlog Detail Page ===== */
.vlog-detail-header {
    margin-bottom: 2rem;
}

.vlog-gallery {
    display: grid;
    gap: 1.5rem;
}

.vlog-gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.vlog-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.vlog-gallery-item video {
    width: 100%;
    display: block;
    background: #000;
}

/* Responsive adjustments for vlog */
@media (max-width: 767px) {
    .vlog-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .vlog-card-body h3 {
        font-size: 1.1rem;
    }
    
    .vlog-card-play {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 575px) {
    .vlog-cards-grid {
        gap: 1rem;
    }
    
    .vlog-card-body {
        padding: 1rem;
    }
    
    .vlog-card-body h3 {
        font-size: 1rem;
    }
    
    .vlog-gallery {
        gap: 1rem;
    }
}

/* ===== Degree Selection ===== */
.degree-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.degree-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.degree-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
}

.degree-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.degree-card h2 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.degree-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.degree-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.degree-features span {
    color: var(--success);
}

@media (max-width: 767px) {
    .degree-selection-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .degree-card {
        padding: 2rem;
    }
    
    .degree-icon {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }


/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--primary);
}
