/* University Section - Enhanced Corporate Style with Smooth Transitions */
.university-section {
    --primary-color: var(--selcuk-blue);
    --secondary-color: var(--selcuk-blue-hover);
    --accent-gold: var(--selcuk-yellow);
    --bg-light: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #333333;
    position: relative;
    background: var(--bg-light);
    overflow: hidden;
}

/* Line Decorator */
.university-section__line-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color) 30%, var(--accent-gold) 30%, var(--accent-gold) 70%, var(--primary-color) 70%);
    z-index: 10;
}

/* Pattern Overlay */
.university-section__pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background-image: radial-gradient(var(--accent-gold) 2px, transparent 2px);
    background-size: 25px 25px;
    opacity: 0.1;
    pointer-events: none;
}

/* Hero Section */
.university-section__hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 700px;
    overflow: hidden;
    background: var(--primary-color);
}

    .university-section__hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(20, 41, 75, 0.4) 0%, rgba(20, 41, 75, 0.8) 100%);
        z-index: 1;
        transition: opacity 0.6s ease;
    }

.university-section__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    opacity: 0.9;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

@keyframes subtleZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.university-section__hero-image.animate {
    animation: subtleZoom 25s infinite alternate ease-in-out;
}

/* Content Box */
.university-section__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.98);
    padding: 3.5rem;
    z-index: 2;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

    .university-section__content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 2px solid var(--accent-gold);
        transform: translate(10px, 10px);
        pointer-events: none;
        z-index: -1;
        opacity: 0.3;
        transition: transform 0.6s ease;
    }

    .university-section__content h3,
    .university-section__content h4,
    .university-section__content p {
        transform: translateY(0);
        opacity: 1;
        transition: transform 0.4s ease, opacity 0.4s ease;
        will-change: transform, opacity;
    }

    .university-section__content h3 {
        color: var(--primary-color);
        font-family: 'Montserrat', sans-serif;
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 0.875rem;
        position: relative;
        padding-bottom: 0.875rem;
        transition-delay: 0.1s;
    }

        .university-section__content h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 70px;
            height: 3px;
            background: var(--accent-gold);
            transition: width 0.6s ease;
        }

    .university-section__content h4 {
        color: var(--secondary-color);
        font-size: 1.6rem;
        font-weight: 500;
        margin-bottom: 1.5rem;
        transition-delay: 0.2s;
    }
    .university-section__content h4 a{
        color: var(--secondary-color);
        font-size: 1.6rem;
        font-weight: 500;
        margin-bottom: 1.5rem;
        transition-delay: 0.2s;
        text-decoration:none;
    }

    .university-section__content p {
        color: var(--text-secondary);
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 0;
        text-align: justify;
        transition-delay: 0.3s;
    }

/* Content Loading States */
.content-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(4px);
}

    .content-loader.active {
        opacity: 1;
        visibility: visible;
    }

/* Modern Loading Animation */
.loader {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .loader::after {
        content: '';
        position: absolute;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        border: 3px solid var(--accent-gold);
        border-color: var(--accent-gold) transparent var(--accent-gold) transparent;
        animation: dual-ring 1.2s linear infinite;
    }

    .loader::before {
        content: '';
        position: absolute;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 3px solid var(--primary-color);
        border-color: transparent var(--primary-color) transparent var(--primary-color);
        animation: dual-ring 1.2s linear infinite reverse;
    }

.loader-text {
    position: absolute;
    bottom: -30px;
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(10px);
    animation: text-fade 0.5s ease forwards 0.3s;
}

.loader-pulse {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(197, 165, 114, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Features Grid */
.university-section__features {
    position: relative;
    margin-top: -100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    padding: 0 10% 4rem;
    z-index: 3;
}

.university-section__feature {
    position: relative;
    background: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .university-section__feature::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .university-section__feature:hover,
    .university-section__feature.active {
        transform: translateY(-8px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

        .university-section__feature:hover::after,
        .university-section__feature.active::after {
            transform: scaleX(1);
        }

.university-section__feature-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.university-section__feature:hover .university-section__feature-image,
.university-section__feature.active .university-section__feature-image {
    transform: scale(1.08);
}

.university-section__feature h5 {
    position: relative;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    padding: 1rem;
    margin: 0;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.university-section__feature:hover h5,
.university-section__feature.active h5 {
    color: var(--secondary-color);
}

/* Feature Card Overlay */
.university-section__feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 54px);
    background: linear-gradient(to bottom, rgba(20, 41, 75, 0) 0%, rgba(20, 41, 75, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.university-section__feature:hover .university-section__feature-overlay {
    opacity: 1;
}

/* Animations */
@keyframes dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes text-fade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .university-section__content {
        width: 75%;
        padding: 3rem;
    }

        .university-section__content h3 {
            font-size: 2rem;
        }

    .university-section__features {
        padding: 0 7% 4rem;
    }
}

@media (max-width: 1200px) {
    .university-section__hero {
        height: 70vh;
        min-height: 600px;
    }

    .university-section__content {
        width: 80%;
        padding: 2.75rem;
    }

        .university-section__content h3 {
            font-size: 2rem;
        }

        .university-section__content h4 {
            font-size: 1.5rem;
        }

        .university-section__content p {
            font-size: 1.05rem;
            line-height: 1.6;
        }

    .university-section__features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 5% 3.5rem;
        margin-top: -80px;
    }

    .university-section__feature-image {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .university-section__hero {
        height: auto;
        min-height: 550px;
    }

    .university-section__content {
        width: 85%;
        padding: 2.25rem;
    }

        .university-section__content h3 {
            font-size: 1.5rem;
            padding-bottom: 0.75rem;
        }

        .university-section__content h4 {
            font-size: 1.4rem;
            margin-bottom: 1.25rem;
        }

        .university-section__content p {
            font-size: 1rem;
            line-height: 1.6;
        }

    .loader {
        width: 70px;
        height: 70px;
    }

        .loader::after {
            width: 56px;
            height: 56px;
        }

        .loader::before {
            width: 42px;
            height: 42px;
        }
}

@media (max-width: 768px) {
    .university-section__hero {
        min-height: 500px;
    }

    .university-section__pattern {
        width: 220px;
        height: 220px;
        background-size: 22px 22px;
    }

    .university-section__content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        padding: 2rem;
        margin: 0;
    }

        .university-section__content h3 {
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
        }

        .university-section__content h4 {
            font-size: 1.3rem;
            margin-bottom: 1.25rem;
        }

        .university-section__content p {
            font-size: 0.95rem;
            line-height: 1.5;
        }

    .university-section__features {
        margin-top: 1.5rem;
        gap: 1.25rem;
        padding: 0 1.25rem 3rem;
    }

    .university-section__feature-image {
        height: 180px;
    }

    .university-section__feature h5 {
        font-size: 1.5rem;
        padding: 0.875rem;
    }
}

@media (max-width: 576px) {
    .university-section__hero {
        min-height: 450px;
    }

    .university-section__pattern {
        width: 180px;
        height: 180px;
        background-size: 20px 20px;
    }

    .university-section__content {
        width: 90%;
        padding: 1.75rem;
    }

        .university-section__content h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .university-section__content h4 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        .university-section__content p {
            font-size: 0.925rem;
            line-height: 1.45;
        }

    .university-section__features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1rem 2.5rem;
    }

    .university-section__feature-image {
        height: 200px;
    }

    .loader {
        width: 60px;
        height: 60px;
    }

        .loader::after {
            width: 48px;
            height: 48px;
        }

        .loader::before {
            width: 36px;
            height: 36px;
        }

    .loader-text {
        font-size: 0.8rem;
        bottom: -25px;
    }
}

@media (max-width: 375px) {
    .university-section__hero {
        min-height: 400px;
    }

    .university-section__pattern {
        width: 150px;
        height: 150px;
        background-size: 18px 18px;
    }

    .university-section__content {
        width: 95%;
        padding: 1.5rem;
    }

        .university-section__content h3 {
            font-size: 1.5rem;
        }

        .university-section__content h4 {
            font-size: 1.1rem;
        }

        .university-section__content p {
            font-size: 0.875rem;
            line-height: 1.4;
        }

    .university-section__feature-image {
        height: 180px;
    }

    .university-section__feature h5 {
        font-size: 1.5rem;
        padding: 0.75rem;
    }

    .loader {
        width: 50px;
        height: 50px;
    }

        .loader::after {
            width: 40px;
            height: 40px;
        }

        .loader::before {
            width: 30px;
            height: 30px;
        }
}

/* Print Styles */
@media print {
    .university-section__hero {
        height: 300px;
    }

    .university-section__content {
        position: relative;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .university-section__features {
        display: none;
    }

    .university-section__pattern,
    .university-section__line-decor {
        display: none;
    }

    .university-section__content::before {
        display: none;
    }
}