/* Faculty Programs Modern UI/UX Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #002e5b 0%, #1a4b73 50%, #2d6a8b 100%);
    padding: 120px 0;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 46, 91, 0.3);
}

.hero-section::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 249, 250, 0.1) 100%);
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

/* Faculty Cards Section */
.faculty-cards-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.faculty-cards-section::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 60 60"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="rgba(0,46,91,0.05)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
}

.faculty-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 46, 91, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    cursor: pointer;
    border: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.faculty-card::before {
    content: '✓ اختر هذه الكلية';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 46, 91, 0.2);
    border-color: #002e5b;
}

.faculty-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.faculty-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 46, 91, 0.9), rgba(26, 75, 115, 0.8), rgba(45, 106, 139, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.faculty-card:hover .card-overlay {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.faculty-card:hover .card-icon {
    transform: scale(1);
}

.card-content {
    padding: 30px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #002e5b;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    position: relative;
}

.card-title::after {
    content: '🎓';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.card-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: left;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #495057;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
}

.stat-item i {
    margin-bottom: 8px;
    color: #002e5b;
    font-size: 1.2rem;
}

.btn-apply {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 18px 32px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.btn-apply::after {
    content: '👈';
    margin-right: 10px;
    font-size: 1rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
}

.btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

.btn-apply:active {
    transform: translateY(0);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-stats {
        flex-direction: column;
        gap: 10px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }

    .faculty-cards-section {
        padding: 40px 0;
    }

    .cta-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .card-image {
        height: 250px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

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

/* Faculty-specific color themes based on main color #002e5b */
.faculty-card[data-faculty="medicine"] .btn-apply {
    background: linear-gradient(135deg, #002e5b 0%, #685af3 50%, #3623c9 100%);
    box-shadow: 0 8px 25px rgba(104, 90, 243, 0.4);
}

.faculty-card[data-faculty="fine-arts"] .btn-apply {
    background: linear-gradient(135deg, #d8678b 0%, #9f2c48 100%);
    box-shadow: 0 8px 25px rgba(216, 103, 139, 0.4);
}

.faculty-card[data-faculty="engineering"] .btn-apply {
    background: linear-gradient(135deg, #002e5b 0%, #0196d1 50%, #0395cf 100%);
    box-shadow: 0 8px 25px rgba(1, 150, 209, 0.4);
}

.faculty-card[data-faculty="computer-science"] .btn-apply {
    background: linear-gradient(135deg, #002e5b 0%, #8e47b1 50%, #9354b2 100%);
    box-shadow: 0 8px 25px rgba(142, 71, 177, 0.4);
}

.faculty-card[data-faculty="business"] .btn-apply {
    background: linear-gradient(135deg, #002e5b 0%, #faa71b 50%, #faa71b 100%);
    box-shadow: 0 8px 25px rgba(250, 167, 27, 0.4);
}

.faculty-card[data-faculty="pharmacy"] .btn-apply {
    background: linear-gradient(135deg, #002e5b 0%, #30d0c8 50%, #30cfc6 100%);
    box-shadow: 0 8px 25px rgba(48, 208, 200, 0.4);
}

.faculty-card[data-faculty="nursing"] .btn-apply {
    background: linear-gradient(135deg, #002e5b 0%, #596ead 50%, #21408e 100%);
    box-shadow: 0 8px 25px rgba(89, 110, 173, 0.4);
}

.faculty-card[data-faculty="physical-therapy"] .btn-apply {
    background: linear-gradient(135deg, #002e5b 0%, #f2737a 50%, #f17279 100%);
    box-shadow: 0 8px 25px rgba(242, 115, 122, 0.4);
}

.faculty-card[data-faculty="dental"] .btn-apply {
    background: linear-gradient(135deg, #002e5b 0%, #506c50 50%, #74b25a 100%);
    box-shadow: 0 8px 25px rgba(116, 178, 90, 0.4);
}

.faculty-card[data-faculty="mass-communication"] .btn-apply {
    background: linear-gradient(135deg, #002e5b 0%, #703305 50%, #dc7828 100%);
    box-shadow: 0 8px 25px rgba(220, 120, 40, 0.4);
}

/* Hover effects for faculty-specific colors */
.faculty-card[data-faculty="medicine"]:hover .btn-apply {
    background: linear-gradient(135deg, #1a4b73 0%, #685af3 50%, #3623c9 100%);
    box-shadow: 0 12px 35px rgba(104, 90, 243, 0.6);
}

.faculty-card[data-faculty="fine-arts"]:hover .btn-apply {
    background: linear-gradient(135deg, #e6789a 0%, #9f2c48 100%);
    box-shadow: 0 12px 35px rgba(216, 103, 139, 0.6);
}

.faculty-card[data-faculty="engineering"]:hover .btn-apply {
    background: linear-gradient(135deg, #1a4b73 0%, #0196d1 50%, #03a9f4 100%);
    box-shadow: 0 12px 35px rgba(1, 150, 209, 0.6);
}

.faculty-card[data-faculty="computer-science"]:hover .btn-apply {
    background: linear-gradient(135deg, #1a4b73 0%, #8e47b1 50%, #a067c5 100%);
    box-shadow: 0 12px 35px rgba(142, 71, 177, 0.6);
}

.faculty-card[data-faculty="business"]:hover .btn-apply {
    background: linear-gradient(135deg, #1a4b73 0%, #faa71b 50%, #fbbf24 100%);
    box-shadow: 0 12px 35px rgba(250, 167, 27, 0.6);
}

.faculty-card[data-faculty="pharmacy"]:hover .btn-apply {
    background: linear-gradient(135deg, #1a4b73 0%, #30d0c8 50%, #5eead4 100%);
    box-shadow: 0 12px 35px rgba(48, 208, 200, 0.6);
}

.faculty-card[data-faculty="nursing"]:hover .btn-apply {
    background: linear-gradient(135deg, #1a4b73 0%, #596ead 50%, #3b82f6 100%);
    box-shadow: 0 12px 35px rgba(89, 110, 173, 0.6);
}

.faculty-card[data-faculty="physical-therapy"]:hover .btn-apply {
    background: linear-gradient(135deg, #1a4b73 0%, #f2737a 50%, #fb7185 100%);
    box-shadow: 0 12px 35px rgba(242, 115, 122, 0.6);
}

.faculty-card[data-faculty="dental"]:hover .btn-apply {
    background: linear-gradient(135deg, #1a4b73 0%, #74b25a 50%, #86efac 100%);
    box-shadow: 0 12px 35px rgba(116, 178, 90, 0.6);
}

.faculty-card[data-faculty="mass-communication"]:hover .btn-apply {
    background: linear-gradient(135deg, #1a4b73 0%, #dc7828 50%, #f97316 100%);
    box-shadow: 0 12px 35px rgba(220, 120, 40, 0.6);
}


/* Additional modern enhancements */
.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 46, 91, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.faculty-card:hover::before {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}
