/* ========================================
   CSS VARIABLES & ROOT STYLES
   ======================================== */
:root {
    --primary-dark: #2c3e50;
    --primary-blue: #3498db;
    --primary-light: #ecf0f1;
    --gradient: linear-gradient(135deg, #2c3e50, #3498db);
    --gradient-reverse: linear-gradient(135deg, #3498db, #2c3e50);
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
}

/* ========================================
   BASE STYLES
   ======================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    padding-top: 76px;
    line-height: 1.6;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    background: var(--gradient) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
    background: var(--gradient-reverse) !important;
}

.navbar-brand img {
    height: 50px;
    transition: height 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
    height: 40px;
}

.lang-switcher-nav {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.rtl .lang-switcher-nav {
    margin-left: 0;
    margin-right: 20px;
}

.lang-switcher-nav .lang-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switcher-nav .lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-switcher-nav .lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   HERO SLIDER (Homepage)
   ======================================== */
.hero-slider {
    height: 70vh;
    min-height: 500px;
    background: #2c3e50;
    position: relative;
    overflow: hidden;
}

.hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    padding: 40px;
    color: white;
}

.slide-content .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.slide-text {
    max-width: 700px;
}

.slide-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
}

/* ========================================
   PAGE HEADER (Internal pages)
   ======================================== */
.page-header {
    background: var(--gradient);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   VISION, MISSION, VALUES SECTION
   ======================================== */
.vmv-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.vmv-section .section-title {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.vmv-section .section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.vmv-section .section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
}

.rtl .vmv-section .section-title p {
    margin-left: auto;
    margin-right: 0;
}

.vmv-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
    justify-content: center;
}

.vmv-card {
    background: white;
    border-radius: 20px;
    padding: 45px 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(33.333% - 30px);
    min-width: 280px;
    max-width: 400px;
    border: 2px solid #f0f0f0;
}

.vmv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s;
}

.vmv-card:hover::before {
    left: 100%;
}

.vmv-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    border-color: transparent;
}

.vmv-card:nth-child(1) .vmv-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vmv-card:nth-child(2) .vmv-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.vmv-card:nth-child(3) .vmv-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.vmv-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.vmv-card:hover .vmv-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.vmv-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.vmv-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0;
    }
}

.vmv-card h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: block;
    text-align: center;
}

.vmv-card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.vmv-card:nth-child(1) h3::after {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.vmv-card:nth-child(2) h3::after {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.vmv-card:nth-child(3) h3::after {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.vmv-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-top: 25px;
}

.vmv-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.vmv-card:hover::after {
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
}

/* ========================================
   COUNSELING CAROUSEL
   ======================================== */
.counseling-carousel {
    padding: 60px 0;
    background: white;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.counseling-carousel .swiper {
    width: 100%;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
}

.counseling-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.counselor-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-hover);
    width: 90%;
    max-width: 800px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.counselor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
}

.counselor-avatar {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.counselor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.counselor-info {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 450px;
}

.counselor-info::-webkit-scrollbar {
    width: 6px;
}

.counselor-info::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.counselor-info::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.counselor-info::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.counselor-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.counselor-profession {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.counselor-bio {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
}

.bio-preview {
    display: block;
}

.bio-full {
    display: none;
}

.bio-full.show {
    display: block;
}

.read-more-btn {
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    padding: 10px 0;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-blue);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-blue);
    color: white;
}

.swiper-pagination-bullet {
    background: var(--primary-blue);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-dark);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-title {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: 60px 0;
    background: white;
}

.about-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 15px;
    padding: 40px 30px;
    margin-top: 50px;
}

.about-content h3 {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* ========================================
   PROGRAMS SECTION
   ======================================== */
.programs-section {
    padding: 40px 0;
}

.program-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.program-header {
    background: var(--gradient);
    color: white;
    padding: 30px;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.program-description {
    opacity: 0.95;
    line-height: 1.6;
}

.program-body {
    padding: 30px;
}

.program-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 0 10px;
}

.rtl .stat-item {
    margin: 0 10px 0 0;
}

.stat-item:first-child {
    margin-left: 0;
}

.rtl .stat-item:first-child {
    margin-left: 10px;
    margin-right: 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.tuition-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

.tuition-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.tuition-label {
    color: #666;
    font-size: 1.1rem;
}

.fees-section {
    margin-bottom: 30px;
}

.fees-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.fee-item:hover {
    background: #e9ecef;
}

.rtl .fee-item {
    flex-direction: row-reverse;
}

.fee-name {
    font-weight: 500;
    color: #333;
}

.fee-amount {
    font-weight: bold;
    color: var(--primary-blue);
}

.study-plan-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.study-plan-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.study-plan-content {
    color: #555;
    line-height: 1.8;
}

.apply-button {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.apply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.program-icon i {
    font-size: 1.8rem;
    color: white;
}

/* Compact Program Card Styles */
.program-card-compact {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.program-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.program-card-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.rtl .program-card-row {
    flex-direction: row-reverse;
}

.program-image-container {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.program-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    position: relative;
}

.program-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="70" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.program-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-image-placeholder i {
    font-size: 4rem;
    color: rgba(255,255,255,0.9);
    z-index: 1;
}

.program-content-compact {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.program-header-compact {
    margin-bottom: 20px;
}

.program-title-compact {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.program-description-compact {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.program-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item-compact {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid var(--primary-blue);
}

.rtl .detail-item-compact {
    border-left: none;
    border-right: 3px solid var(--primary-blue);
}

.detail-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.detail-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.detail-value-small {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.program-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-apply {
    flex: 1;
    padding: 12px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: white;
}

.btn-details {
    padding: 12px 20px;
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-details:hover {
    background: var(--primary-blue);
    color: white;
}

.program-card-compact:nth-child(3n+1) .program-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.program-card-compact:nth-child(3n+2) .program-image-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.program-card-compact:nth-child(3n+3) .program-image-placeholder {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.partners-section {
    padding: 80px 0;
    background: white;
}

.partner-logo {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.partner-logo-link {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.partner-logo-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

.partner-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.partner-website-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.partner-website-btn i {
    font-size: 0.85rem;
}

/* ========================================
   NEWS SECTION
   ======================================== */
.news-section {
    padding: 80px 0;
    background: var(--primary-light);
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.testimonialsSwiper {
    padding: 20px 60px 60px;
}

.testimonialsSwiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-blue);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.rtl .testimonial-card {
    border-left: none;
    border-right: 5px solid var(--primary-blue);
}

.student-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--primary-blue);
}

.rtl .student-image-wrapper {
    margin-right: 0;
}

.student-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-info h5 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.8;
    position: relative;
    padding: 0 30px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.3;
}

.rtl .testimonial-text::before {
    left: auto;
    right: 0;
}

.read-more-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: var(--primary-dark);
    padding-left: 5px;
}

.rtl .read-more-link:hover {
    padding-left: 0;
    padding-right: 5px;
}

.testimonialsSwiper .swiper-button-next,
.testimonialsSwiper .swiper-button-prev {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonialsSwiper .swiper-button-next:hover,
.testimonialsSwiper .swiper-button-prev:hover {
    background: var(--primary-blue);
    box-shadow: var(--shadow-hover);
}

.testimonialsSwiper .swiper-button-next::after,
.testimonialsSwiper .swiper-button-prev::after {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: bold;
}

.testimonialsSwiper .swiper-button-next:hover::after,
.testimonialsSwiper .swiper-button-prev:hover::after {
    color: white;
}

.testimonialsSwiper .swiper-pagination {
    bottom: 20px;
}

.testimonialsSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-dark);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.testimonialsSwiper .swiper-pagination-bullet-active {
    background: var(--primary-blue);
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   CALENDAR SECTION
   ======================================== */
.calendar-section {
    padding: 40px 0;
}

.semester-section {
    margin-bottom: 60px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.semester-title {
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-blue);
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.calendar-table th,
.calendar-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.calendar-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.calendar-table th:first-child,
.calendar-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.calendar-table th:last-child,
.calendar-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.calendar-table tr:hover {
    background: #f8f9fa;
}

.event-cell {
    color: var(--primary-dark);
    font-weight: 500;
}

.event-cell:hover {
    color: var(--primary-blue);
}

.date-info {
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.search-section {
    background: white;
    padding: 40px 0;
    margin-top: -40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.search-box {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.rtl .search-box input {
    padding: 18px 25px 18px 60px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.rtl .search-icon {
    right: auto;
    left: 25px;
}

.filter-section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: white;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-category-section {
    margin-bottom: 50px;
}

.category-title {
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-blue);
    display: inline-block;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-hover);
}

.accordion-button {
    background: white;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px 25px;
    border: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232c3e50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 25px;
    background: #f8f9fa;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-results i {
    font-size: 5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    opacity: 0.3;
}

.no-results h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
}

.contact-cta {
    background: var(--gradient);
    color: white;
    padding: 60px 0;
    margin-top: 80px;
    border-radius: 20px;
}

.contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 60px 0;
    background: var(--gradient);
    color: white;
}

.contact-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-blue);
    margin-right: 15px;
    width: 25px;
}

.rtl .contact-info i {
    margin-right: 0;
    margin-left: 15px;
}

.btn-light {
    background: white;
    color: var(--primary-dark);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}

/* ========================================
   QUICK LINKS
   ======================================== */
.quick-links {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.quick-links h3 {
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.quick-links .list-group {
    border: none;
}

.quick-links .list-group-item {
    border: none;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.quick-links .list-group-item:last-child {
    border-bottom: none;
}

.quick-links .list-group-item:hover {
    padding-left: 10px;
    color: var(--primary-blue);
}

.rtl .quick-links .list-group-item:hover {
    padding-left: 0;
    padding-right: 10px;
}

.quick-links .list-group-item i {
    color: var(--primary-blue);
    margin-right: 10px;
    width: 20px;
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal-header {
    background: var(--gradient);
    color: white;
    border: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.fee-table {
    width: 100%;
    margin-bottom: 20px;
}

.fee-table tr {
    border-bottom: 1px solid #eee;
}

.fee-table td {
    padding: 12px 0;
}

.fee-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary-blue);
}

.rtl .fee-table td:last-child {
    text-align: left;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
    margin-top: 60px;
}

.footer h5 {
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-blue);
}

.rtl .footer h5::after {
    left: auto;
    right: 0;
}

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

.rtl .footer a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* ========================================
   COMMON/REUSABLE STYLES
   ======================================== */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
}

.rtl .section-title p {
    margin-left: auto;
    margin-right: 0;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--gradient-reverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ========================================
  NEWS SECTION
   ======================================== */
/* News Section Styles */
.news-section {
    background: #f8f9fa;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(41, 128, 185, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.rtl .news-date {
    right: auto;
    left: 15px;
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.read-more-btn:hover {
    color: #1a5d8a;
    gap: 12px;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

.rtl .read-more-btn:hover i {
    transform: translateX(-5px);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    border: none;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 700;
    font-size: 1.4rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 30px;
}

.news-full-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px 25px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h4 {
        font-size: 1.1rem;
    }
    
    .news-date {
        font-size: 12px;
        padding: 6px 12px;
    }
}





/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */
@media (max-width: 992px) {
    .vmv-cards {
        gap: 30px;
    }
    
    .vmv-card {
        flex: 1 1 calc(50% - 20px);
    }

    .testimonialsSwiper {
        padding: 20px 50px 60px;
    }
}

@media (max-width: 768px) {
    .slide-text h1 {
        font-size: 2.5rem;
    }
    
    .slide-text p {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .vmv-section {
        padding: 60px 0;
    }
    
    .vmv-section .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .vmv-card {
        flex: 1 1 100%;
        padding: 35px 25px;
    }
    
    .vmv-icon {
        width: 80px;
        height: 80px;
    }
    
    .vmv-icon i {
        font-size: 2rem;
    }
    
    .vmv-card h3 {
        font-size: 1.5rem;
    }
    
    .about-content {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .about-content h3 {
        font-size: 1.5rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .program-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin: 0 0 10px 0;
    }
    
    .rtl .stat-item {
        margin: 0 0 10px 0;
    }
    
    .counseling-carousel .swiper {
        height: 650px;
    }
    
    .counselor-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .counselor-avatar {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .counselor-name {
        font-size: 1.5rem;
    }
    
    .counselor-info {
        max-height: 400px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .calendar-table {
        font-size: 0.9rem;
    }
    
    .calendar-table th,
    .calendar-table td {
        padding: 8px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer .row > div {
        margin-bottom: 30px;
    }

    .testimonialsSwiper {
        padding: 20px 40px 60px;
    }

    .testimonialsSwiper .swiper-button-next,
    .testimonialsSwiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .testimonialsSwiper .swiper-button-next::after,
    .testimonialsSwiper .swiper-button-prev::after {
        font-size: 16px;
    }

    .program-card-row {
        flex-direction: column;
    }

    .rtl .program-card-row {
        flex-direction: column;
    }

    .program-image-container {
        flex: 0 0 200px;
        height: 200px;
    }

    .program-content-compact {
        padding: 20px;
    }

    .program-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .slide-text h1 {
        font-size: 2rem;
    }
    
    .slide-text p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    .testimonialsSwiper {
        padding: 20px 10px 60px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-text {
        padding: 0 20px;
    }
}
/* Portal Access Cards Styles */
.portal-access-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.portal-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.portal-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.portal-card:hover::before {
    transform: scaleX(1);
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.portal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.portal-card:hover .portal-icon {
    transform: scale(1.1) rotate(360deg);
}

.portal-icon i {
    font-size: 2rem;
    color: white;
}

.portal-card h5 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.portal-card:hover h5 {
    color: var(--primary-blue);
}

.portal-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.portal-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.rtl .portal-arrow {
    transform: translateX(10px);
}

.portal-card:hover .portal-arrow {
    opacity: 1;
    transform: translateX(0);
}

.portal-arrow i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .portal-card {
        padding: 25px 20px;
    }
    
    .portal-icon {
        width: 60px;
        height: 60px;
    }
    
    .portal-icon i {
        font-size: 1.5rem;
    }
    
    .portal-card h5 {
        font-size: 1.1rem;
    }
}