:root {
    --primary-color: #FF7D33;
    --primary-dark: #E66C2A;
    --secondary-color: #2D9596;
    --light-color: #F5F5F5;
    --dark-color: #333333;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --drawer-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--dark-color);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    transition: transform 0.3s ease;
}

body.drawer-open {
    transform: translateX(calc(var(--drawer-width) * -1));
    overflow: hidden;
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/pattern.png') center/cover no-repeat;
    filter: blur(5px);
    opacity: 0.1;
    z-index: -1;
}

/* Navigation */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.logo {
    height: 80px;
    margin-left: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-text {
    flex: 1;
    padding: 0 1rem;
}

.nav-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--light-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-text p {
    font-size: 1rem;
    color: var(--light-color);
    opacity: 0.9;
}

/* Drawer Styles */
.drawer-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    padding: 0.5rem;
    margin-right: -0.5rem;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: var(--drawer-width);
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), #1d6d6e);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 1.5rem;
    overflow-y: auto;
}

.side-drawer.open {
    right: 0;
}

.close-drawer {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.side-drawer ul {
    list-style: none;
    margin-top: 3rem;
}

.side-drawer li {
    margin-bottom: 1.5rem;
}

.side-drawer a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.side-drawer a:hover {
    color: var(--primary-color);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--secondary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.about-section {
    margin: 2rem 0;
    padding: 2rem;
}

.about-section h3 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.about-section ul {
    list-style-position: inside;
    margin: 1rem 0;
}

.about-section li {
    margin-bottom: 0.5rem;
}

.highlight {
    font-weight: 700;
    color: var(--light-color);
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* CTA Button */
.cta-button {
    display: block;
    width: 200px;
    margin: 2rem auto;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 149, 150, 0.4);
}

.cta-button:hover {
    background: #247e7f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 149, 150, 0.6);
}

.cta-button i {
    margin-right: 0.5rem;
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

.glass-footer p {
    color: var(--light-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 149, 150, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(45, 149, 150, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 149, 150, 0);
    }
}


/* University List Styles */
.university-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.university-header {
    text-align: center;
    margin-bottom: 2rem;
}

.university-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.university-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.university-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.university-name {
    padding: 1rem;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

/* University Detail Styles */
.university-detail {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.detail-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.detail-section p {
    color: white;
    line-height: 1.6;
}

.specialization {
    background: rgba(45, 149, 150, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    display: inline-block;
}

/* Archive View Styles */
.archive-view {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.archive-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.archive-item img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.archive-item embed {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.download-link {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: #247e7f;
    transform: translateY(-2px);
}



/* Admin Panel Specific Styles */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-form label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.2);
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form button[type="submit"] {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    grid-column: 1 / -1;
}

.admin-form button[type="submit"]:hover {
    background: #247e7f;
    transform: translateY(-2px);
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.admin-actions button {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-actions button:hover {
    transform: translateY(-2px);
}

.success {
    color: #4BB543;
    background: rgba(75, 181, 67, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    grid-column: 1 / -1;
}

.error {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-text h1 {
        font-size: 1.2rem;
    }
    
    .nav-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .drawer-toggle {
        display: block;
    }
    
    .nav-container {
        padding: 0.5rem;
    }
    
    .logo {
        height: 60px;
        margin-left: 0;
    }
    
    .nav-text {
        display: none;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .glass-footer {
        padding: 1rem;
    }
    
    .glass-footer p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .card, .glass-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .about-section h3 {
        font-size: 1.1rem;
    }
    
    .about-section ul {
        padding-right: 1rem;
    }
}


/* Responsive Design */
@media (max-width: 992px) {
    .nav-text h1 {
        font-size: 1.2rem;
    }
    
    .nav-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .drawer-toggle {
        display: block;
    }
    
    .nav-container {
        padding: 0.5rem;
    }
    
    .logo {
        height: 60px;
        margin-left: 0;
    }
    
    .nav-text {
        display: none;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .glass-footer {
        padding: 1rem;
    }
    
    .glass-footer p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .card, .glass-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .about-section h3 {
        font-size: 1.1rem;
    }
    
    .about-section ul {
        padding-right: 1rem;
    }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .admin-form {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .university-header h2 {
        font-size: 1.5rem;
    }
    
    .detail-image {
        max-height: 250px;
    }
    
    .archive-item embed {
        height: 300px;
    }
}