/* style.css */

/* --- GLOBAL VARIABLES --- */
:root {
    --navy: #0F172A;       /* Official Dark Navy */
    --red: #D71822;        /* Brand Red */
    --light-bg: #F8FAFC;   /* Light Grayish Blue */
    --border: #E2E8F0;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-main);
    color: #334155;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.5px; }
a { text-decoration: none; transition: 0.3s; }

/* --- UTILITIES --- */
.section-padding { padding: 100px 0; }
.text-red { color: var(--red) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-light-custom { background-color: var(--light-bg); }

/* --- BUTTONS --- */
.btn-modern {
    padding: 12px 28px; border-radius: 8px; font-weight: 600; transition: 0.3s; border: none;
}
.btn-red {
    background: var(--red); color: white;
    box-shadow: 0 4px 15px rgba(215, 24, 34, 0.3);
}
.btn-red:hover { background: #b00d16; transform: translateY(-2px); color: white; }

.btn-outline {
    border: 2px solid var(--navy); color: var(--navy); background: transparent;
}
.btn-outline:hover { background: var(--navy); color: white; }

.btn-outline-light-custom {
    border: 1px solid rgba(255,255,255,0.3); color: white; background: rgba(255,255,255,0.1);
}
.btn-outline-light-custom:hover { background: white; color: var(--navy); }

/* --- NAVBAR --- */
.navbar {
    padding: 1rem 0; background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.nav-link { font-weight: 600; color: var(--navy); margin: 0 12px; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--red); }
.login-btn { background: #f1f5f9; color: var(--navy); font-size: 0.9rem; padding: 8px 20px; border-radius: 50px; font-weight: 600; }
.login-btn:hover { background: #e2e8f0; color: var(--red); }

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.4) 100%);
}
.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
    border-radius: 24px;
    color: white;
    max-width: 650px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.hero-tag {
    background: rgba(215, 24, 34, 0.2); border: 1px solid var(--red); color: #ff8a8a;
    padding: 5px 15px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; display: inline-block;
}

/* --- ABOUT (BENTO GRID) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px 300px;
    gap: 24px;
}
.bento-box {
    border-radius: 24px; overflow: hidden; position: relative; transition: 0.3s;
}
.bento-box:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.bento-text { grid-column: span 1; background: var(--light-bg); padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.bento-img-large { grid-column: span 2; }
.bento-img-large img { width: 100%; height: 100%; object-fit: cover; }
.bento-stat { background: var(--navy); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.bento-img-small { grid-column: span 1; }
.bento-img-small img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 991px) {
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-text, .bento-img-large, .bento-stat, .bento-img-small { grid-column: span 1; height: 300px; }
}

/* --- DEPARTMENTS --- */
.dept-card {
    background: white; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; height: 100%; transition: 0.3s;
}
.dept-card:hover { border-color: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.dept-img { height: 200px; width: 100%; object-fit: cover; }
.dept-body { padding: 25px; }

.badge-campus { background: #e0f2fe; color: #0369a1; font-size: 0.75rem; font-weight: 700; padding: 6px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }
.badge-online { background: #f0fdf4; color: #15803d; font-size: 0.75rem; font-weight: 700; padding: 6px 10px; border-radius: 6px; margin-left: 5px; display: inline-flex; align-items: center; gap: 4px; }

/* --- NEWS MAGAZINE --- */
.news-hero { position: relative; height: 450px; border-radius: 20px; overflow: hidden; }
.news-hero img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-hero:hover img { transform: scale(1.05); }
.news-hero-content {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white;
}
.news-list-item {
    display: flex; gap: 20px; padding: 20px; border-bottom: 1px solid var(--border); align-items: center; transition: 0.2s;
}
.news-list-item:hover { background: var(--light-bg); border-radius: 12px; border-color: transparent; }
.date-badge { text-align: center; background: white; border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; min-width: 65px; }

/* --- GALLERY (MOSAIC) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 15px;
}
.gallery-item { position: relative; overflow: hidden; border-radius: 16px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); opacity: 0;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.gallery-icon { color: white; font-size: 2rem; transform: scale(0); transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-icon { transform: scale(1); }

.g-item-1 { grid-column: span 2; grid-row: span 1; }
.g-item-2 { grid-column: span 1; grid-row: span 1; }
.g-item-3 { grid-column: span 1; grid-row: span 2; }
.g-item-4 { grid-column: span 1; grid-row: span 1; }
.g-item-5 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 768px) {
    .gallery-grid { display: flex; flex-direction: column; gap: 15px; }
    .gallery-item { height: 250px; }
}

/* --- CONTACT --- */
.contact-wrapper { position: relative; padding: 100px 0; background: #f1f5f9; overflow: hidden; }
.contact-bg-map {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/Vienna_city_map.png') center/cover;
    filter: blur(4px) grayscale(100%) opacity(0.3);
}
.contact-card {
    background: white; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden; position: relative; z-index: 2;
}
.contact-info-side {
    background: var(--navy); color: white; padding: 50px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.contact-form-side { padding: 50px; }
.form-control-custom {
    background: #f8fafc; border: 1px solid #e2e8f0; padding: 15px; border-radius: 8px; width: 100%;
}
.form-control-custom:focus { border-color: var(--red); outline: none; background: white; }

/* --- FOOTER --- */
footer { background-color: #0B1120; color: #94A3B8; padding-top: 80px; position: relative; }
.footer-top-border {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--red) 0%, var(--navy) 100%);
}
.footer-logo { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 1.8rem; color: white; }
.footer-link { display: block; color: #64748B; text-decoration: none; margin-bottom: 12px; transition: 0.2s; font-size: 0.95rem; }
.footer-link:hover { color: white; transform: translateX(5px); }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s;
    margin-right: 10px; text-decoration: none;
}
.social-btn:hover { background: var(--red); color: white; }
.footer-map iframe { width: 100%; height: 200px; border-radius: 12px; filter: grayscale(100%); transition: 0.3s; }
.footer-map iframe:hover { filter: grayscale(0%); }

/* --- AUTH PAGES (Login) --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #F8FAFC;
}
.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    display: flex;
    min-height: 600px;
}
.auth-side-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: none; /* Mobile hidden */
}
@media(min-width: 992px) { .auth-side-img { display: block; } }

.auth-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex; align-items: flex-end; padding: 40px; color: white;
}
.auth-form-side {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-logo { width: 150px; margin-bottom: 40px; }
/* --- HERO SLIDER STYLES --- */
.hero-slide {
    height: 85vh; /* ارتفاع السلايدر (تقريباً كامل الشاشة) */
    min-height: 600px;
    position: relative;
    background-color: #000; /* لون خلفية احتياطي */
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان عدم تمطط الصورة */
    object-position: center;
}

/* طبقة التعتيم السوداء */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

/* تنسيق النصوص داخل السلايدر */
.carousel-caption {
    z-index: 2;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: center;
    padding-bottom: 5rem; /* مسافة من الأسفل */
}

/* حركة النصوص (Fade Up Animation) */
.carousel-item.active h1 { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; animation-delay: 0.2s; }
.carousel-item.active p { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; animation-delay: 0.4s; }
.carousel-item.active .btn { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; animation-delay: 0.6s; }

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

/* تخصيص مؤشرات السلايدر (النقط أسفل الشاشة) */
.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5) !important;
    margin: 0 5px !important;
    border: none !important;
}
.carousel-indicators .active {
    background-color: var(--red) !important;
    transform: scale(1.2);
}
/* --- NEW CONTACT SECTION STYLES --- */

/* الدائرة الزخرفية في الخلفية */
.circle-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(215, 24, 34, 0.1); /* Red with opacity */
    border-radius: 50%;
    z-index: 1;
}

.relative-position {
    position: relative;
}

/* أيقونات المعلومات الصغيرة */
.icon-box-small {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
}

/* أيقونات التواصل الاجتماعي */
.social-icon-link {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}
.social-icon-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

/* تحسين حقول الإدخال */
.form-control-lg {
    font-size: 0.95rem;
    padding: 1rem;
}
.form-control-lg:focus {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(215, 24, 34, 0.1); /* Red glow focus */
}


        /* --- NEW ABOUT SECTION STYLES (INLINE FOR DEMO, MOVED TO CSS IN PROD) --- */
        .about-composition {
            position: relative;
            padding-left: 30px;
        }
        .about-img-main {
            width: 100%;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .about-img-small {
            position: absolute;
            bottom: -30px;
            left: 0;
            width: 50%;
            border: 5px solid white;
            border-radius: 16px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }
        .experience-badge {
            position: absolute;
            top: 30px;
            right: -20px;
            background: var(--navy);
            color: white;
            padding: 20px 30px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
            text-align: center;
        }
        .check-list li {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            font-weight: 500;
            color: #475569;
        }
        .check-list i {
            color: var(--red);
            background: rgba(215, 24, 34, 0.1);
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 0.8rem;
        }
