/* ==========================================================================
   Faculty of Graduate Studies - Main Stylesheet
   Deep Blue Professional Theme
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-color: #003366;
    --secondary-color: #004080;
    --accent-color: #0059b3;
    --text-color: #333333;
    --text-light: #666666;
    --background: #ffffff;
    --background-light: #f5f7fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --heading-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.25rem;
    --spacing-md: 2rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    --border-radius: 4px;
    --border-radius-lg: 8px;
    
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--background);
    font-weight: 400;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.main-content {
    min-height: calc(100vh - 400px);
    padding: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: linear-gradient(135deg, #001a33 0%, var(--primary-color) 50%, #002952 100%);
    color: #ffffff;
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo h1 {
    color: #ffffff;
    font-size: 1.15rem;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
}

.logo a:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* Brand Container */
.brand-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-icon {
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-title {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.site-tagline {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Header Sections */
.header-top {
    background: linear-gradient(135deg, #001a33 0%, var(--primary-color) 50%, #002952 100%);
    padding: 1rem 0;
    border-bottom: 2px solid var(--accent-color);
}

.header-bottom {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.main-navigation {
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
}

.main-navigation li {
    white-space: nowrap;
}

.main-navigation a {
    color: #333333 !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    transition: all 0.2s ease;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    position: relative;
    text-decoration: none;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--accent-color);
    transition: transform 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color) !important;
    background-color: rgba(0, 89, 179, 0.05);
}

.main-navigation a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.main-navigation a.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background-color: rgba(0, 89, 179, 0.08);
}

.main-navigation a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 89, 179, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-tagline {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-intro {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002952 100%);
    color: #ffffff;
    padding: 1.75rem 0 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-title {
    color: inherit;
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 300;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 3rem 0;
    background-color: var(--background);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 51, 102, 0.08);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.15);
    border-color: rgba(0, 51, 102, 0.12);
}

.feature-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: var(--spacing-xl);
}

.feature-content h3 {
    margin-bottom: var(--spacing-sm);
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.feature-link {
    color: var(--accent-color);
    font-weight: 600;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, #001a33 0%, var(--primary-color) 50%, #002952 100%);
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--background-light);
    border-left: 4px solid var(--accent-color);
}

.page-content {
    margin-top: var(--spacing-xl);
}

.page-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

/* ==========================================================================
   Programs
   ========================================================================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.program-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.15);
}

.program-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.program-content {
    padding: var(--spacing-lg);
}

.program-content h3 {
    margin-bottom: var(--spacing-sm);
}

.program-duration {
    color: var(--accent-color);
    margin: var(--spacing-sm) 0;
}

.program-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.program-section {
    margin-bottom: var(--spacing-xl);
}

.program-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* ==========================================================================
   Faculty
   ========================================================================== */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.faculty-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.faculty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.15);
}

.faculty-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--background-light);
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 4rem;
    font-weight: 700;
}

.faculty-info {
    padding: var(--spacing-lg);
}

.faculty-info h3 {
    margin-bottom: var(--spacing-xs);
}

.faculty-position {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.faculty-department {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.faculty-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.profile-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.profile-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.profile-image img {
    width: 100%;
    height: auto;
}

.profile-contact {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}

.profile-contact p {
    margin-bottom: var(--spacing-md);
}

.profile-section {
    margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   News
   ========================================================================== */
.news-list {
    margin-top: var(--spacing-xl);
}

.news-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.news-date,
.news-author {
    margin-right: var(--spacing-md);
}

.news-content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.news-content h2 a {
    color: var(--primary-color);
}

.news-content h2 a:hover {
    color: var(--accent-color);
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.article-date,
.article-author {
    margin-right: var(--spacing-md);
}

.article-content {
    margin: var(--spacing-xl) 0;
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-form {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}

.contact-form p {
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.contact-info-section {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.contact-info-item {
    margin-bottom: var(--spacing-lg);
}

.contact-info-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.thank-you-message {
    text-align: center;
    padding: var(--spacing-xxl);
    background-color: var(--background-light);
    border-radius: var(--border-radius-lg);
    margin-top: var(--spacing-xl);
}

/* ==========================================================================
   Info Box
   ========================================================================== */
.info-box {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-color);
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

.info-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.info-actions {
    margin-top: var(--spacing-lg);
}

.info-actions .btn {
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: linear-gradient(to bottom, #001a33, #000d1a);
    color: #ffffff;
    padding: 2.5rem 0 1.5rem;
    margin-top: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-about {
    max-width: 350px;
}

.footer-address {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-email {
    margin-top: 1.5rem;
}

.footer-email a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: #ffffff;
    opacity: 0.9;
}

.footer-section a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .program-detail,
    .faculty-profile {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar,
    .program-sidebar,
    .contact-info-section {
        position: static;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-tagline {
        font-size: 0.75rem;
    }
    
    .logo-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .header-bottom {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        width: 100%;
        display: none;
        background: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation a {
        padding: 1rem 1.5rem;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        margin-top: var(--spacing-md);
    }
    
    .main-navigation li {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation a {
        display: block;
        padding: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid,
    .programs-grid,
    .faculty-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger animations for cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

/* ==========================================================================
   Enhanced Card Hover Effects
   ========================================================================== */
.feature-card,
.program-card,
.faculty-card,
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.program-card:hover,
.faculty-card:hover,
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 51, 102, 0.15);
}

.feature-card img,
.program-card img,
.faculty-card img,
.news-card img {
    transition: transform 0.4s ease;
}

.feature-card:hover img,
.program-card:hover img,
.faculty-card:hover img,
.news-card:hover img {
    transform: scale(1.05);
}

/* Button Glow Effect */
.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(0, 89, 179, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 4px 20px rgba(0, 64, 128, 0.3);
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, #001a33 0%, var(--primary-color) 50%, #002952 100%);
    color: #ffffff;
    padding: 2.5rem 0;
    margin: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    background-color: var(--background-light);
    padding: 3rem 0;
    margin: 0;
}

.testimonials-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 51, 102, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    border-left: 3px solid var(--accent-color);
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.12);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.testimonial-position {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   Partners/Accreditation Section
   ========================================================================== */
.partners-section {
    padding: 2.5rem 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.partners-section .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.partner-logo {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.3s; }
.partner-logo:nth-child(4) { animation-delay: 0.4s; }

.partner-logo:hover {
    transform: scale(1.05);
    background-color: var(--background-light);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

.partner-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Social Media Section
   ========================================================================== */
.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

.newsletter-section h4 {
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-button:hover {
    background-color: #0073e6;
    transform: scale(1.02);
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */
.brand-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.language-switcher {
    position: relative;
    margin-left: auto;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-toggle svg {
    width: 18px;
    height: 18px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown form {
    margin: 0;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
}

.lang-option:hover {
    background-color: var(--background-light);
    color: var(--accent-color);
}

/* ==========================================================================
   RTL Support for Arabic
   ========================================================================== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .container {
    direction: rtl;
}

/* Header RTL */
[dir="rtl"] .header-top {
    direction: rtl;
}

[dir="rtl"] .header-top .container {
    direction: rtl;
}

[dir="rtl"] .brand-container {
    direction: rtl;
}

[dir="rtl"] .logo-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo-icon {
    order: 2;
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .brand-text {
    order: 1;
    align-items: flex-start;
    text-align: right;
}

[dir="rtl"] .site-title,
[dir="rtl"] .site-tagline {
    text-align: right;
}

[dir="rtl"] .header-bottom {
    direction: rtl;
}

[dir="rtl"] .header-bottom .container {
    direction: rtl;
}

[dir="rtl"] .main-navigation {
    direction: rtl;
}

[dir="rtl"] .main-navigation ul {
    direction: rtl;
}

[dir="rtl"] .main-navigation li {
    direction: rtl;
}

[dir="rtl"] .main-navigation a {
    text-align: center;
}

[dir="rtl"] .main-navigation a::after {
    right: auto;
    left: 10%;
}

[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-option {
    text-align: right;
}

/* Hero Section RTL */
[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

/* Page Content RTL */
[dir="rtl"] .page-header {
    text-align: right;
}

[dir="rtl"] .page-content {
    text-align: right;
}

/* Lists RTL */
[dir="rtl"] ul,
[dir="rtl"] ol {
    margin-left: 0;
    margin-right: var(--spacing-lg);
    padding-left: 0;
    padding-right: var(--spacing-lg);
}

/* Feature Cards RTL */
[dir="rtl"] .feature-card {
    text-align: right;
}

[dir="rtl"] .feature-card img {
    float: right;
}

[dir="rtl"] .features-grid {
    direction: rtl;
}

/* Stats Section RTL */
[dir="rtl"] .stat-item {
    text-align: center;
}

[dir="rtl"] .stats-grid {
    direction: rtl;
}

/* Testimonials RTL */
[dir="rtl"] .testimonial-card {
    text-align: right;
}

[dir="rtl"] .testimonial-quote::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .testimonials-grid {
    direction: rtl;
}

/* Partners Section RTL */
[dir="rtl"] .partners-grid {
    direction: rtl;
}

/* Footer RTL */
[dir="rtl"] .site-footer {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    direction: rtl;
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
}

[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .footer-section h3,
[dir="rtl"] .footer-section h4 {
    text-align: right;
}

[dir="rtl"] .footer-section p {
    text-align: right;
}

[dir="rtl"] .footer-section ul {
    text-align: right;
    list-style-position: inside;
}

[dir="rtl"] .footer-section ul li {
    text-align: right;
}

[dir="rtl"] .footer-section address {
    text-align: right;
    font-style: normal;
}

[dir="rtl"] .footer-connect {
    order: 1;
}

[dir="rtl"] .footer-links {
    order: 2;
}

[dir="rtl"] .footer-about {
    order: 3;
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
}

[dir="rtl"] .footer-email,
[dir="rtl"] .footer-address {
    text-align: right;
}

[dir="rtl"] .footer-bottom {
    text-align: center;
}

[dir="rtl"] .footer-bottom p {
    text-align: center;
}

/* Forms RTL */
[dir="rtl"] .form-field label {
    text-align: right;
}

[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] textarea,
[dir="rtl"] select {
    text-align: right;
}

/* Buttons RTL */
[dir="rtl"] .btn svg,
[dir="rtl"] .btn i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Program/Faculty Cards RTL */
[dir="rtl"] .program-card,
[dir="rtl"] .faculty-card,
[dir="rtl"] .news-card {
    text-align: right;
}

[dir="rtl"] .card-title {
    text-align: right;
}

[dir="rtl"] .card-meta {
    flex-direction: row-reverse;
}

/* Breadcrumbs RTL (if any) */
[dir="rtl"] .breadcrumbs {
    direction: rtl;
}

[dir="rtl"] .breadcrumbs li::after {
    content: "←";
    margin: 0 0.5rem;
}

/* RTL Mobile Menu */
[dir="rtl"] .mobile-menu-toggle {
    left: 1rem;
    right: auto;
}

@media (max-width: 768px) {
    [dir="rtl"] .main-navigation {
        right: auto;
        left: 0;
        text-align: right;
    }
    
    [dir="rtl"] .main-navigation ul {
        align-items: flex-end;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .hero-buttons,
    .mobile-menu-toggle,
    .social-links,
    .newsletter-section,
    .language-switcher {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    a {
        text-decoration: underline;
    }
}

