/* ================================================
   Global Styles & Variables
   ================================================ */
:root {
    /* Colors - Lev Academic Center Theme */
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

/* ================================================
   Skip Link (Accessibility)
   ================================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 10px;
}

/* ================================================
   Cookie Notice
   ================================================ */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 51, 102, 0.98);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-content a {
    color: #ffd700;
    text-decoration: underline;
}

.cookie-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn:hover {
    background: #ff5520;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ================================================
   Accessibility Toolbar
   ================================================ */
.accessibility-toolbar {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.accessibility-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.accessibility-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* High Contrast Mode */
body.high-contrast {
    --primary-color: #000000;
    --text-dark: #000000;
    --bg-white: #ffffff;
    filter: contrast(1.3);
}

/* ================================================
   Header Styles
   ================================================ */
.main-header {
    background: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Main */
.header-main {
    padding: 20px 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 5px;
}

/* Header Contact */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 1.1rem;
}

/* ================================================
   Main Content
   ================================================ */
.main-content {
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.title-underline.center {
    margin: 20px auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Introduction Section */
.intro-section {
    margin-bottom: 60px;
}

.intro-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.intro-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.manager-info {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    border-right: 4px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.manager-info i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Programs Section */
.programs-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.program-icon {
    font-size: 2.5rem;
    opacity: 0.95;
}

.program-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.program-content {
    padding: 25px;
}

.program-subtitle {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.program-details {
    margin-bottom: 20px;
}

.program-details li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-dark);
}

.program-details li:last-child {
    margin-bottom: 0;
}

.program-details .fa-check-circle {
    color: var(--success-color);
    margin-top: 4px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.program-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.program-duration {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 20px;
    background: var(--bg-light);
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 600;
}

.program-duration i {
    font-size: 1.2rem;
}

.program-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 15px;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    transition: var(--transition);
}

.program-link:hover {
    background: var(--secondary-color);
    color: white;
}

/* Featured Program - New Pharmacy Technician Program */
.program-card.featured-program {
    position: relative;
    border: 3px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.program-card.featured-program::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #ffd700, var(--accent-color));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.program-badge-featured {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), #ff8c5a);
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
}

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

.program-badge-featured i {
    animation: rotate 4s linear infinite;
}

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

.highlight-box {
    background: linear-gradient(135deg, #fff8f0, #ffe8d6);
    border-right: 4px solid var(--accent-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.highlight-box p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-dark);
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.program-badges-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.program-badges-row .program-badge {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

/* Contact CTA Section */
.contact-cta-section {
    margin: 60px 0;
}

.contact-cta-card {
    background: linear-gradient(135deg, var(--accent-color), #ff8c5a);
    color: white;
    text-align: center;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.contact-cta-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-cta-card p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.contact-number {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--accent-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.contact-number i {
    font-size: 1.3rem;
}

.contact-number span {
    color: var(--accent-color);
}

/* ================================================
   Footer Styles
   ================================================ */
.main-footer {
    background: var(--primary-color);
    color: white;
    margin-top: 60px;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.6;
}

.footer-contact i {
    margin-top: 3px;
    color: #ffd700;
    flex-shrink: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #ffd700;
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: #ffd700;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-credit a {
    color: #ffd700;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ================================================
   Back to Top Button
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ff5520;
    transform: translateY(-5px);
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 1024px) {
    .header-main-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contact {
        width: 100%;
        justify-content: center;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .accessibility-toolbar {
        left: 10px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .intro-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .intro-icon {
        font-size: 3rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-cta-card {
        padding: 40px 20px;
    }
    
    .contact-cta-card h3 {
        font-size: 1.5rem;
    }
    
    .contact-number {
        font-size: 1.2rem;
        padding: 12px 30px;
    }
    
    .program-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .accessibility-toolbar {
        left: 5px;
        padding: 5px;
    }
    
    .accessibility-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ================================================
   Print Styles
   ================================================ */
@media print {
    .cookie-notice,
    .accessibility-toolbar,
    .back-to-top,
    .footer-bottom {
        display: none;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .program-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ================================================
   Animation & Scroll Effects
   ================================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card {
    animation: fadeIn 0.6s ease forwards;
}

.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }
.program-card:nth-child(7) { animation-delay: 0.7s; }
.program-card:nth-child(8) { animation-delay: 0.8s; }