/* --------------- 
 * Tajawal & Cairo Fonts Setup
 * --------------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* --------------- 
 * Font Awesome Display Swap Hack
 * --------------- */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/webfonts/fa-solid-900.woff2") format("woff2");
}

/* --------------- 
 * CSS Variables
 * --------------- */
:root {
    --card-bg: #ffffff;
    --primary-color: #1a237e; /* Royal Blue */
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary-color: #ffd700; /* Gold */
    --secondary-light: #ffff52;
    --secondary-dark: #c7a500;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f4f6fc;
    --white: #ffffff;
    --error: #e53935;
    --success: #43a047;
    
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 20px 40px 0 rgba(26, 35, 126, 0.08);
    
    --transition-speed: 0.3s;
    --border-radius: 20px;
}

/* --------------- 
 * Reset & Global 
 * --------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section, #formWrapper, #faq, #program-matcher, .faculty-card {
    scroll-margin-top: 130px;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 78px;
}

/* Background Effects */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background: linear-gradient(135deg, #f4f6fc 0%, #e8eaf6 100%);
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    opacity: 0.6;
}

.bg-animation::before, .bg-animation::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 25s infinite alternate linear;
}

.bg-animation::before {
    background: var(--primary-light);
    top: -20vw;
    right: -10vw;
}

.bg-animation::after {
    background: var(--secondary-light);
    bottom: -10vw;
    left: -20vw;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5%, 10%) scale(1.1); }
    100% { transform: translate(10%, -5%) scale(0.9); }
}

/* --------------- 
 * Header
 * --------------- */
.main-header {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: -50px;
    padding-top: 100px;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 81, 0.6), rgba(26, 35, 126, 0.9));
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.top-logo-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: #ffffff;
    padding: 10px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-bottom: 4px solid var(--secondary-color);
    border-radius: 0 0 30px 30px;
}

.wide-logo {
    max-height: 85px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* --------------- 
 * Main Content & Form
 * --------------- */
.form-wrapper {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
    padding: 40px;
    animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(26, 35, 126, 0.1);
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.academic-year {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(26, 35, 126, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    margin-bottom: 15px;
}

.academic-year span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.academic-year strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.form-section {
    margin-bottom: 35px;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(26, 35, 126, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-top: 4px solid var(--primary-color);
}

.highlight-section {
    border-top: 4px solid var(--secondary-color);
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.03), #ffffff);
}

.section-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--secondary-dark);
}

.section-desc {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-half {
    flex: 1;
    min-width: calc(50% - 10px);
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.required {
    color: var(--error);
    margin-right: 4px;
}

.input-container {
    position: relative;
    border: 1.5px solid rgba(26, 35, 126, 0.15);
    border-radius: 10px;
    background: var(--white);
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.input-container:hover {
    border-color: rgba(26, 35, 126, 0.3);
}

.input-container.focused {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}

.input-container i {
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.1rem;
    border-left: 1px solid rgba(26, 35, 126, 0.08);
    background: rgba(0, 0, 0, 0.015);
    height: 100%;
}

.input-container.focused i {
    color: var(--primary-color);
}

input[type="text"],
input[type="tel"],
input[type="number"],
select.custom-select {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    background: transparent;
}

select.custom-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 15px;
    padding-left: 35px;
}

select.custom-select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a237e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

select.custom-select option {
    background: var(--white);
    color: var(--text-color);
}

input::placeholder {
    color: #aaa;
    font-weight: 300;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 400;
}

/* Radio Buttons (Normal) */
.radio-group-container {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-left: 10px;
    position: relative;
    transition: all 0.2s;
}

.custom-radio:hover .radio-mark {
    border-color: var(--primary-color);
}

.custom-radio input:checked ~ .radio-mark {
    border-color: var(--primary-color);
}

.custom-radio input:checked ~ .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.radio-label {
    font-size: 1.05rem;
    font-weight: 500;
}

/* Specializations Radio Cards */
.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 15px;
    margin-top: 15px;
}

.spec-card {
    position: relative;
    cursor: pointer;
}

.spec-card input {
    position: absolute;
    opacity: 0;
}

.spec-content {
    background: var(--white);
    border: 1.5px solid rgba(26, 35, 126, 0.1);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spec-content i {
    font-size: 2rem;
    color: var(--primary-light);
    transition: all 0.3s;
}

.spec-content span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.3;
}

.spec-card:hover .spec-content {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.08);
}

.spec-card input:checked ~ .spec-content {
    border-color: var(--primary-color);
    background: rgba(26, 35, 126, 0.03);
    box-shadow: 0 0 0 1px var(--primary-color), 0 6px 15px rgba(26, 35, 126, 0.1);
}

.spec-card input:checked ~ .spec-content i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.submit-btn, .reset-btn, .btn-secondary {
    padding: 14px 28px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    flex: 2;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.submit-btn i {
    transition: transform 0.3s;
}

.submit-btn:hover i {
    transform: translateX(-5px);
}

.submit-btn:active {
    transform: translateY(1px);
}

.reset-btn {
    background: #e0e0e0;
    color: #555;
    flex: 1;
}

.reset-btn:hover {
    background: #d5d5d5;
    color: #333;
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    margin-top: 20px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 50px 20px;
    transition: opacity 0.5s, transform 0.5s;
}

.success-message.hidden {
    display: none;
}

.success-message i {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
}

.success-message h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 40, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.hidden {
    display: none;
}

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

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.fade-in .modal-content {
    transform: translateY(0) scale(1);
}

.dept-text {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 25px;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-dept-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0.9;
    margin-top: 5px;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: rgba(26, 35, 126, 0.02);
    padding: 20px;
    border-radius: 12px;
    margin-top: 10px;
    text-align: right;
}
@media (max-width: 500px) {
    .summary-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 10px;
    }
}
.summary-item {
    font-size: 1.05rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}
.summary-item strong {
    color: var(--text-light);
    margin-left: 8px;
}

/* Summary Badges (Replaced Banner) */
.summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    animation: fadeInDown 0.4s ease-out;
}
.summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid rgba(26, 35, 126, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(26,35,126,0.05);
    cursor: pointer;
    transition: all 0.3s;
}
.summary-badge:hover {
    background: rgba(26, 35, 126, 0.05);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}
.summary-badge i {
    color: var(--primary-light);
    font-size: 1.1rem;
}
.summary-badge .edit-icon {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-right: 5px;
    transition: color 0.3s;
}
.summary-badge:hover .edit-icon {
    color: var(--primary-color);
}

/* Floating Labels */
.floating-group {
    position: relative;
    margin-bottom: 25px;
}
.floating-group > label {
    display: none;
}
.floating-group .input-container {
    position: relative;
}
.floating-group .floating-label {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.2s ease-out;
    margin: 0;
    font-weight: 400;
}
.floating-group .input-container.focused .floating-label,
.floating-group input.has-value ~ .floating-label,
.floating-group select.has-value ~ .floating-label {
    top: -10px;
    right: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: #fff;
    padding: 0 5px;
    border-radius: 4px;
}

/* Hide placeholders when input is not focused to prevent overlapping with floating labels */
.floating-group input::placeholder,
.floating-group textarea::placeholder {
    color: transparent !important;
    opacity: 0 !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.floating-group .input-container.focused input::placeholder,
.floating-group .input-container.focused textarea::placeholder {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

/* Select element specifics */
.focusable-select-group select.custom-select {
    padding-top: 15px;
}

/* Icon Animations */
.floating-icon {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s;
}
.input-container.focused .floating-icon {
    transform: scale(1.15);
    color: var(--primary-color);
}

/* Segmented Controls */
.segmented-control {
    display: flex;
    flex-wrap: wrap;
    background: rgba(26, 35, 126, 0.05);
    padding: 6px;
    border-radius: 12px;
    gap: 8px;
    border: 1px solid rgba(26, 35, 126, 0.1); 
}
.segment-label {
    flex: 1;
    text-align: center;
    position: relative;
    margin: 0;
    cursor: pointer;
}
.segment-label input {
    position: absolute;
    opacity: 0;
}
.segment-text {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--white);
    border: 1px solid rgba(26, 35, 126, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.3s;
}
.segment-label:hover .segment-text {
    border-color: var(--primary-light);
    color: var(--primary-color);
}
.segment-label input:checked ~ .segment-text {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.2);
    transform: scale(1.02);
}

/* Error Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); border-color: var(--error); }
    40%, 80% { transform: translateX(5px); border-color: var(--error); }
}
.error-shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

/* Slide Transitions */
.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.slide-in-left {
    animation: slideInLeft 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Progress Line Update & Step Indicator Styling */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-bottom: 35px;
    padding: 0 40px;
}
.step-indicator::before {
    display: none !important;
}
.step-indicator .progress-line-bg, 
.step-indicator .progress-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    left: 40px;
    right: 40px;
    z-index: 1;
    border-radius: 2px;
}
.step-indicator .progress-line-bg {
    background: #e2e8f0;
}
.step-indicator .progress-line {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-indicator .step {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #64748b;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.step-indicator .step.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(26, 35, 126, 0.15), 0 4px 10px rgba(26, 35, 126, 0.2);
    transform: scale(1.15);
}
.step-indicator .step.completed {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(67, 160, 71, 0.25);
}

/* Step Navigation Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(26, 35, 126, 0.08);
}
.step-btn {
    padding: 12px 28px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}
.btn-next {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    flex-direction: row-reverse;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}
.btn-next i {
    transition: transform 0.3s ease;
}
.btn-next:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 35, 126, 0.3);
}
.btn-next:hover i {
    transform: translateX(-4px);
}
.btn-next:active {
    transform: translateY(1px) scale(0.98);
}
.btn-prev {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.btn-prev i {
    transition: transform 0.3s ease;
}
.btn-prev:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.btn-prev:hover i {
    transform: translateX(4px);
}
.btn-prev:active {
    transform: translateY(1px) scale(0.98);
}

/* Ripple/Scale Effect on Buttons */
.submit-btn, .btn-next {
    position: relative;
    overflow: hidden;
}
.submit-btn:active, .btn-next:active {
    transform: scale(0.98);
}

/* UX Additions */
.input-container.valid {
    border-color: var(--success);
}
.input-container.invalid {
    border-color: var(--error);
}
.inline-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}
.inline-error.active {
    display: block;
}
.step-indicator .step.clickable {
    cursor: pointer;
}
.step-indicator .step.clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}
/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.fa-spinner {
    animation: spin 1s linear infinite;
}

/* =========================================================
   Hero Slider (Swiper) Styles
   ========================================================= */
.hero-swiper {
    width: 100%;
    height: 75vh;
    min-height: 600px;
    position: relative;
    padding: 0;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85) 0%, rgba(30, 41, 145, 0.6) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 10;
    color: white;
    padding: 0 20px;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.slide-cta {
    background: #FFC107;
    color: #1a237e;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
    transition: all 0.3s ease;
    font-family: inherit;
}

.slide-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.6);
    background: #ffca2c;
}

.slider-logo-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    max-width: 90%;
    z-index: 100;
    background: #ffffff;
    padding: 15px 50px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-bottom: 4px solid #FFC107;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Swiper Controls */
.swiper-button-next, .swiper-button-prev {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    top: 45%;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: white;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #FFC107;
    opacity: 1;
}

/* =========================================================
   Faculties Section Styles
   ========================================================= */
.faculties-section {
    padding: 20px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faculty-card {
    background: #1a237e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.faculty-img {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.faculty-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(26, 35, 126, 0.9), transparent);
}

.faculty-content {
    padding: 25px;
    text-align: right;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.faculty-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #FFC107;
}

.faculty-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-select-faculty {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-select-faculty:hover {
    background: #FFC107;
    color: #1a237e;
    border-color: #FFC107;
}

/* =========================================================
   New UX Improvements
   ========================================================= */
/* Sticky Nav & Upper Navbar Styling */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color); /* Premium Navy Background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.sticky-nav.scrolled {
    background: var(--primary-dark);
    border-bottom: 2px solid var(--secondary-color); /* Gold Border on scroll */
    box-shadow: 0 10px 30px rgba(0, 0, 50, 0.25);
    padding-top: 5px;
    padding-bottom: 5px;
}
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    height: 48px;
    transition: transform 0.3s;
}
.nav-logo:hover {
    transform: scale(1.05);
}
.slider-logo-bar {
    display: none !important; /* Hide old duplicate logo bar */
}

/* Sticky Nav Links */
.sticky-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}
.sticky-nav-links a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sticky-nav-links a i {
    font-size: 1rem;
    color: var(--secondary-color);
}
.sticky-nav-links a:hover,
.sticky-nav-links a.active {
    color: var(--secondary-color) !important;
    background: rgba(255, 255, 255, 0.08);
}
.nav-btn-whatsapp {
    background: #25D366;
    color: white !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 1.02rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.nav-btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* Enhanced Inputs for Forms */
.input-container input, .input-container select {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(26, 35, 126, 0.15);
    transition: all 0.3s;
}
.input-container input:focus, .input-container select:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}
.input-container input:focus ~ .floating-icon, .input-container select:focus ~ .floating-icon {
    color: var(--primary-color);
    transform: scale(1.15);
}

/* Radio Cards Selected State Feedback */
.faculty-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}
.faculty-card:has(input:checked) {
    border: 2px solid #FFC107;
    box-shadow: 0 15px 35px rgba(26, 35, 126, 0.3);
    transform: translateY(-8px) scale(1.02);
}
.faculty-card input:checked ~ .faculty-content .btn-select-faculty {
    background: #FFC107;
    color: var(--primary-dark);
    font-weight: bold;
    transform: scale(1.05);
}

/* Enhancing Step Transition */
@keyframes smoothSlideUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.step-content {
    display: none;
}
.step-content.active {
    display: block;
    animation: smoothSlideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
}

/* Modern Footer adjustments */
.modern-footer a {
    text-decoration: none;
}

/* =========================================================
   Genius Chatbot Styles - Master Base (Mobile First)
   ========================================================= */
.genius-chatbot { 
    position: fixed; 
    bottom: 160px; 
    left: 15px; 
    width: calc(100vw - 30px); 
    height: calc(100vh - 180px); 
    max-height: 550px; 
    background: white; 
    border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    z-index: 10000; 
    transform: translateY(20px); 
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid #e2e8f0; 
}
.genius-chatbot.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
.genius-header { background: var(--primary-color); padding: 15px 20px; color: white; display: flex; justify-content: space-between; align-items: center; }
.genius-title { font-weight: bold; font-size: 1.1rem; }
.genius-close { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; }
.genius-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: #f8fafc; }
.genius-msg { padding: 12px 16px; border-radius: 12px; max-width: 85%; line-height: 1.5; font-size: 0.95rem; }
.genius-msg.bot { background: white; border: 1px solid #e2e8f0; color: #1e293b; align-self: flex-start; border-bottom-right-radius: 0; }
.genius-msg.user { background: var(--primary-light); color: white; align-self: flex-end; border-bottom-left-radius: 0; }
.genius-input-area { padding: 15px; background: white; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; }
.genius-input-area input { flex: 1; border: 1px solid #cbd5e1; border-radius: 20px; padding: 10px 15px; font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.3s; }
.genius-input-area input:focus { border-color: var(--primary-light); }
.genius-send { background: var(--primary-color); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.genius-send:hover { background: var(--primary-dark); }

@keyframes slideUpFadeMsg {
    0% { opacity: 0; transform: translateY(15px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
body.chatbot-open::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(5px); z-index: 9998;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
body.chatbot-open.active::after { opacity: 1; }
body.chatbot-open .genius-input-area { padding-left: 90px; }
.quick-replies-container {
    display: flex; gap: 8px; overflow-x: auto; padding: 10px 15px; 
    background: #f8fafc; border-top: 1px solid #e2e8f0;
    scrollbar-width: none;
}
.quick-replies-container::-webkit-scrollbar { display: none; }
.quick-chip {
    white-space: nowrap; padding: 6px 14px; background: white; border: 1px solid var(--primary-color);
    color: var(--primary-color); border-radius: 20px; font-size: 0.85rem; cursor: pointer; font-family: inherit;
    transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); font-weight: bold; flex-shrink: 0;
}
.quick-chip:hover { background: var(--primary-color); color: white; transform: translateY(-2px); }

/* The Alive Page: Spotlight tracking and Reveals */
.faculty-card, .input-container { position: relative; overflow: hidden; }
.faculty-card::before, .input-container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 1; transition: opacity 0.3s ease;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(26, 35, 126, 0.05), transparent 40%);
    opacity: 0;
}
.faculty-card:hover::before, .input-container:focus-within::before { opacity: 1; }
.input-container:focus-within {
    box-shadow: 0 0 15px rgba(26, 35, 126, 0.15);
    transition: box-shadow 0.3s ease;
}

.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Avatar Engine */
.genius-avatar {
    position: fixed; bottom: 125px; left: 15px; z-index: 100000;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    width: 70px; height: 95px; 
    transform: translate(var(--drone-x, 0), var(--drone-y, 0)) scale(1.15); transform-origin: top left;
    transition: transform 1.2s cubic-bezier(0.25, 1.2, 0.5, 1); pointer-events: none;
    touch-action: none;
}
.genius-avatar.dragging { transition: none !important; cursor: grabbing !important; }
.genius-avatar.dragging .avatar-body { animation: avatarDrag 0.3s ease-in-out infinite alternate !important; transform: none !important; cursor: grabbing !important; }
.genius-avatar.dragging .avatar-eye { background: #ffc107 !important; box-shadow: 0 0 15px #ffc107 !important; }
@keyframes avatarDrag { 0% { transform: rotate(-8deg) scale(1.1); } 100% { transform: rotate(8deg) scale(1.1); } }
.avatar-body {
    position: relative; width: 55px; height: 75px; filter: drop-shadow(0 8px 15px rgba(26, 35, 126, 0.6));
    display: flex; flex-direction: column; align-items: center; transition: all 0.3s;
    cursor: pointer; pointer-events: auto;
}
.avatar-body:hover { transform: scale(1.15) translateY(-5px); filter: drop-shadow(0 15px 25px rgba(26, 35, 126, 0.8)); }
.avatar-body:active { transform: scale(0.95); }
.avatar-head {
    width: 48px; height: 42px; background: #ffffff; border-radius: 18px 18px 12px 12px;
    position: relative; display: flex; justify-content: center; align-items: center; gap: 8px;
    box-shadow: inset 0 -4px 8px rgba(0,0,0,0.1), 0 5px 15px rgba(26,35,126,0.3); 
    z-index: 2; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
}
.avatar-eye { width: 10px; height: 14px; background: #1a237e; border-radius: 6px; box-shadow: 0 0 10px rgba(26,35,126,0.5); animation: blink 4s infinite; }
.avatar-torso {
    width: 36px; height: 32px; background: linear-gradient(135deg, #1a237e, #3949ab); border-radius: 6px 6px 15px 15px;
    margin-top: -6px; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,0.3); border-top: none;
    box-shadow: inset 0 -4px 10px rgba(0,0,0,0.4), 0 5px 10px rgba(26,35,126,0.3);
}
@keyframes surpriseJump { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.2) rotate(15deg); } 100% { transform: translateY(0) scale(1) rotate(0); } }
.genius-avatar.surprised .avatar-body { animation: surpriseJump 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.genius-avatar.sleeping .avatar-eye { height: 2px !important; border-radius: 0 !important; background: #999 !important; box-shadow: none !important; transform: translateY(5px) translate(0,0) !important; animation: none !important; }
.avatar-eye { transform: translate(var(--eye-x, 0), var(--eye-y, 0)); transition: transform 0.1s ease-out; }
.avatar-arm { width: 8px; height: 18px; background: #3949ab; border-radius: 4px; position: absolute; top: 4px; transform-origin: top center; transition: all 0.3s; }
.avatar-arm.left { left: -8px; }
.avatar-arm.right { right: -8px; }
.avatar-shadow { width: 40px; height: 6px; background: rgba(0,0,0,0.1); border-radius: 50%; margin-top: 5px; animation: shadowScale 2s ease-in-out infinite alternate;}

/* Tooltip inside Avatar */
.avatar-speech {
    position: absolute; bottom: 105px; left: 50px; transform: scale(0); opacity: 0; transform-origin: bottom left;
    min-width: 160px; max-width: 240px; background: white; padding: 12px 15px; border-radius: 15px 15px 15px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); border: 2px solid var(--primary-color);
    color: var(--primary-color); font-weight: bold; font-size: 0.9rem; text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: auto; cursor: pointer;
    word-wrap: break-word;
}
.avatar-speech.show { transform: scale(1); opacity: 1; }
.avatar-speech:hover { background: #f8fafc; }
.avatar-speech.flip-left {
    left: auto; right: 50px;
    transform-origin: bottom right;
    border-radius: 15px 15px 0 15px;
}
.avatar-speech.flip-top {
    bottom: auto;
    top: 95px;
    transform-origin: top left;
    border-radius: 0 15px 15px 15px;
}
.avatar-speech.flip-top.flip-left {
    bottom: auto;
    top: 95px;
    transform-origin: top right;
    border-radius: 15px 0 15px 15px;
}

/* Animation States */
.genius-avatar.idle .avatar-body { animation: avatarBreathe 2s ease-in-out infinite alternate; }
.genius-avatar.waving .avatar-arm.right { animation: avatarWave 0.6s ease-in-out infinite alternate; }
.genius-avatar.walking .avatar-body { animation: avatarWalk 0.3s ease-in-out infinite alternate; transform: rotate(15deg); }

/* Pointing Right */
.genius-avatar.pointing-right .avatar-arm.right { transform: rotate(-90deg) scaleY(1.3); background: #ffc107; box-shadow: 0 0 10px #ffc107; }
.genius-avatar.pointing-right .avatar-head { transform: rotate(15deg); }
.genius-avatar.pointing-right .avatar-laser { opacity: 1; width: 80px; }

/* Pointing Left */
.genius-avatar.pointing-left .avatar-arm.left { transform: rotate(90deg) scaleY(1.3); background: #ffc107; box-shadow: 0 0 10px #ffc107; }
.genius-avatar.pointing-left .avatar-head { transform: rotate(-15deg); }
.genius-avatar.pointing-left .avatar-laser { opacity: 1; width: 80px; left: auto; right: 10px; transform-origin: right center; }

.avatar-laser {
    position: absolute; width: 0px; height: 3px; background: rgba(0, 188, 212, 0.8);
    box-shadow: 0 0 15px 5px rgba(0, 188, 212, 0.5); top: 50%; left: 10px;
    transform-origin: left center; z-index: -1; transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; pointer-events: none;
}

/* Keyframes */
@keyframes avatarBreathe { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } }
@keyframes shadowScale { 0% { transform: scale(1); opacity: 0.1; } 100% { transform: scale(0.6); opacity: 0.05; } }
@keyframes avatarWave { 0% { transform: rotate(0deg); } 100% { transform: rotate(120deg); } }
@keyframes avatarWalk { 0% { transform: translateY(0); } 100% { transform: translateY(-12px); } }
@keyframes eyePulse { 0% { transform: scale(1); } 100% { transform: scale(1.4); } }
.genius-avatar.thinking .avatar-eye { animation: eyePulse 0.4s infinite alternate; box-shadow: 0 0 15px #ffeb3b; background: #ffeb3b; }

/* Magic UI/UX Styles */
.cursor-trail { pointer-events: none; position: fixed; border-radius: 50%; background: rgba(0, 188, 212, 0.6); box-shadow: 0 0 10px rgba(0, 188, 212, 0.8), 0 0 20px #ffc107; transform: translate(-50%, -50%); z-index: 99999; transition: width 0.15s, height 0.15s, opacity 0.5s; }
.tilt-card { transition: box-shadow 0.3s ease, transform 0.1s ease-out; transform-style: preserve-3d; }
.tilt-card:hover { z-index: 10; box-shadow: 0 20px 40px rgba(26, 35, 126, 0.4) !important; }
.tilt-card .faculty-content, .tilt-card .faq-question { transform: translateZ(20px); }
#scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: linear-gradient(90deg, #1a237e, #00bcd4, #ffc107); z-index: 100000; transition: width 0.1s ease; border-radius: 0 2px 2px 0; }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple-animation 0.6s linear; background-color: rgba(255, 255, 255, 0.4); pointer-events: none; }
@keyframes ripple-animation { to { transform: scale(4); opacity: 0; } }
.btn-ripple { position: relative; overflow: hidden; }
.typewriter::after { content: '|'; animation: cursorBlink 1s infinite step-start; }
@keyframes cursorBlink { 50% { opacity: 0; } }

/* Force Local FontAwesome icons visibility */
.fa-solid, .fas, .fa-brands, .fab, .fa-regular, .far, [class^="fa-"], [class*=" fa-"] {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.fa-solid, .fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
}

/* Loading shimmer for images */
.slide-bg, .faculty-img {
    background-color: #1a1a3e;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
}
.slide-bg[data-bg], .faculty-img[data-bg] {
    background-image: none !important;
}
.slide-bg.loaded, .faculty-img.loaded {
    animation: fadeInBg 0.3s ease;
}
@keyframes fadeInBg {
    from { opacity: 0.7; }
    to { opacity: 1; }
}
.slide-bg:not(.loaded)::after, .faculty-img:not(.loaded)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid rgba(26, 35, 126, 0.08);
    box-shadow: 0 -5px 25px rgba(0, 0, 40, 0.04);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    gap: 4px;
}
.mobile-bottom-nav a i {
    font-size: 1.25rem;
    color: #64748b;
    transition: all 0.25s;
}
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active {
    color: var(--primary-color);
}
.mobile-bottom-nav a:hover i,
.mobile-bottom-nav a.active i {
    color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
}

/* Floating Center Action Button in Mobile Bottom Nav */
.mobile-bottom-nav a.nav-bot-btn {
    position: relative;
    top: -16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white !important;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex: none;
    box-shadow: 0 6px 16px rgba(26, 35, 126, 0.3);
    border: 3px solid white;
}
.mobile-bottom-nav a.nav-bot-btn i {
    color: white !important;
    font-size: 1.35rem;
}
.mobile-bottom-nav a.nav-bot-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.4);
}
.mobile-bottom-nav a.nav-bot-btn span {
    position: absolute;
    bottom: -22px;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Floating WhatsApp button */
.wa-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s;
}
.wa-float-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}
.wa-float-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
    font-family: inherit;
    font-weight: 600;
}
.wa-float-btn:hover .wa-float-tooltip {
    opacity: 1;
    visibility: visible;
}

@media(max-width: 768px){
    .wa-float-btn {
        bottom: 80px; /* Shift above mobile bottom nav */
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-bottom-nav {
        display: flex !important;
    }
    body {
        padding-bottom: 75px !important;
        padding-top: 64px !important; /* Smaller body padding for mobile nav */
    }
    
    /* Sticky Nav Mobile */
    .sticky-nav {
        padding: 8px 15px !important;
    }
    .nav-logo {
        height: 38px !important;
    }
    .nav-btn-whatsapp {
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
    }
    
    /* Form Header Mobile */
    .form-header h2 {
        font-size: 1.5rem !important;
    }
    .academic-year {
        font-size: 0.85rem !important;
    }
    
    /* Swiper Content Mobile */
    .slide-content h1 {
        font-size: 2.2rem !important;
    }
    .slide-content p {
        font-size: 1.1rem !important;
    }
    .slide-cta {
        padding: 12px 30px !important;
        font-size: 1.1rem !important;
    }
    
    /* Guidance & Faculty Detail Mobile */
    .ai-header {
        padding: 25px 15px !important;
    }
    .ai-header h2 {
        font-size: 1.35rem !important;
    }
    .ai-header p {
        font-size: 0.85rem !important;
    }
    .ai-body {
        padding: 20px 10px !important;
    }
    .ai-options-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .guidance-opt {
        padding: 12px !important;
    }
    .ai-quiz-container {
        border-radius: 16px !important;
    }
    #riasec-personality-type {
        font-size: 1.3rem !important;
        padding: 8px 15px !important;
    }
    
    .sd-header-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 15px !important;
        gap: 10px !important;
    }
    .sd-icon-wrapper {
        display: none !important;
    }
    .sd-desc-box {
        padding: 15px !important;
    }
    .sd-info-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .faculty-action-btns {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .faculty-action-btns button {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Sections & Maps mobile */
    section, .faq-section {
        margin: 30px auto !important;
        padding: 0 10px !important;
    }
    #map {
        height: 280px !important;
    }
    
    /* Prevent input zooming on iOS */
    input[type="text"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="email"],
    select.custom-select,
    textarea {
        font-size: 16px !important;
    }
}

/* Tour Card on Mobile */
@media (max-width: 500px) {
    #tourCard { bottom: 10px !important; padding: 20px 15px 15px !important; border-radius: 18px !important; }
    #tourCard #tourTitle { font-size: 1.1rem !important; }
    #tourCard #tourText { font-size: 0.9rem !important; }
}

/* AI Step progress and search elements mobile responsive */
@media (max-width: 600px) {
    #ai-semantic-search > div { flex-direction: column; }
    #ai-semantic-search button { width: 100%; justify-content: center; padding: 14px !important; }
    .faculty-card .faculty-content > div:last-child {
        flex-direction: column;
        gap: 8px !important;
    }
    .faculty-card .faculty-content > div:last-child > * {
        flex: none !important;
        width: 100% !important;
        text-align: center !important;
        padding: 14px 10px !important;
        font-size: 1rem !important;
    }
}
@media (max-width: 768px) {
    .form-wrapper { padding: 0 10px !important; margin-top: -30px !important; }
    .glass-panel { padding: 18px !important; border-radius: 15px !important; }
    .step-indicator { padding: 0 5px !important; gap: 8px !important; }
    .step { width: 32px !important; height: 32px !important; font-size: 0.95rem !important; }
    .form-section { padding: 18px !important; border-radius: 12px !important; margin-bottom: 20px !important; }
    .section-title { font-size: 1.25rem !important; margin-bottom: 15px !important; }
    p.section-desc { font-size: 0.95rem !important; margin-bottom: 20px !important; }
    
    /* Faculty Cards */
    .faculty-card { padding: 0 !important; overflow: hidden; }
    .faculty-content { padding: 15px !important; }
    .faculty-content h3 { font-size: 1.2rem !important; }
    
    /* Tables */
    table { min-width: 400px; }
    
    /* Text inputs */
    input.modern-input, select.modern-select, textarea.modern-input { font-size: 16px !important; }
    
    /* Buttons */
    .submit-btn, .btn-next, .next-btn, .btn-prev, .prev-btn, .reset-btn { font-size: 1.05rem !important; padding: 14px 20px !important; }
    .btn-select-faculty { padding: 10px !important; font-size: 0.95rem !important; }
}

@media (max-width: 480px) {
    .slide-content h1 { font-size: 1.8rem !important; }
    .slide-content p { font-size: 0.95rem !important; margin-bottom: 20px !important; }
    .slide-cta { padding: 10px 24px !important; font-size: 1rem !important; }
}

/* General robust fixes */
img, svg, video { max-width: 100%; height: auto; }

/* FAQ Accordion Styling */
.faq-item {
    background: var(--white);
    border: 1px solid rgba(26, 35, 126, 0.08);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item:hover {
    border-color: rgba(26, 35, 126, 0.15);
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.05);
    transform: translateY(-2px);
}
.faq-question {
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    background: var(--white);
}
.faq-question i.fa-chevron-down {
    font-size: 0.95rem;
    color: var(--primary-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    background: rgba(26, 35, 126, 0.01);
}

/* Open State Accordion */
.faq-item.faq-open {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.08);
}
.faq-item.faq-open .faq-question {
    color: var(--primary-color);
    border-bottom: 1px solid rgba(26, 35, 126, 0.05);
}
.faq-item.faq-open .faq-question i.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--primary-color);
}
.faq-item.faq-open .faq-answer {
    max-height: 500px; /* arbitrary height to slide down */
    padding: 20px 25px;
    opacity: 1;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 15px 18px;
        font-size: 1rem;
    }
    .faq-item.faq-open .faq-answer {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
}

/* Status Modal Overlay & Box */
.status-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 12, 36, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.status-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.status-modal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px 35px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 30px 70px rgba(8, 12, 36, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.status-modal-overlay.show .status-modal {
    transform: translateY(0) scale(1);
}
.status-modal .close-btn {
    position: absolute;
    left: 20px;
    top: 20px;
    background: rgba(26, 35, 126, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s;
}
.status-modal .close-btn:hover {
    background: rgba(26, 35, 126, 0.1);
    transform: rotate(90deg);
}
.status-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    display: none;
    text-align: center;
}
.status-result.show {
    display: block;
}

@media (max-width: 480px) {
    .status-modal {
        padding: 25px 20px;
    }
}

/* FAQ Audio Button - Premium Gold Circular Widget */
.faq-audio-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color, #ffc107), #ffa000);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark, #1a237e);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.faq-audio-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffa000, var(--secondary-color, #ffc107));
}
.faq-audio-btn i {
    transition: transform 0.3s ease;
}
.faq-audio-btn:hover i {
    animation: fa-beat 1s infinite;
}

/* FAQ Accordion Styling Polish */
.faq-item.faq-open {
    border-color: var(--secondary-color, #ffc107);
    box-shadow: 0 12px 35px rgba(26, 35, 126, 0.08), 0 0 15px rgba(255, 193, 7, 0.05);
}
.faq-question i.fa-chevron-down {
    transition: transform 0.3s ease;
    color: var(--text-light);
}
.faq-item.faq-open .faq-question i.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--secondary-color, #ffc107);
}

/* Enhanced Footer Styling */
.enhanced-footer {
    background: linear-gradient(185deg, #0b0f2a, #070a1c);
    color: #f8fafc;
    padding: 70px 20px 30px;
    border-top: 4px solid var(--secondary-color, #ffc107);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.enhanced-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,193,7,0.3), transparent);
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.footer-col h4 {
    color: var(--secondary-color, #ffc107);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color, #ffc107);
    border-radius: 2px;
}
.footer-col p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Link Hover Slide (RTL) */
.footer-col a:hover {
    color: var(--secondary-color, #ffc107);
    padding-right: 8px;
}
.footer-col a i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}
.footer-col a:hover i {
    transform: translateX(-4px);
    color: var(--secondary-color, #ffc107);
}
/* Social Media Icons */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0;
}
.footer-socials a:hover {
    color: var(--primary-dark, #1a237e) !important;
    background: var(--secondary-color, #ffc107);
    border-color: var(--secondary-color, #ffc107);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    padding-right: 0;
}
.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}