@tailwind base;
@tailwind components;
@tailwind utilities;

.container-box {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.school-card {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.school-card:hover {
    transform: translateY(-5px);
    border-bottom-color: rgb(179, 26, 47);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.hero-overlay {
    background: rgba(0, 0, 0, 0.55);
}

/* Hero Slider (Swiper) – modern, clean controls */
.hero-slider .swiper-pagination {
    bottom: 18px !important;
}
.hero-slider .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    opacity: 0.55;
    background: #ffffff;
}
.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffffff;
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}
.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 16px;
    font-weight: 700;
}
@media (max-width: 767px) {
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none;
    }
}
.footer-with-logo {
    position: relative;
}
.footer-with-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('footer-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.03;
    z-index: 0;
}
.footer-with-logo .container-box {
    position: relative;
    z-index: 1;
}

/* Game Section CSS */
.game-section {
    padding: 60px 50px;
    background-color: #f9fafb;
}
.game-section .owl-stage {
    margin: 15px 0;
    display: flex;
}
.game-section .item {
    margin: 0 15px 60px;
    width: 320px;
    height: 400px;
    display: flex;
    align-items: flex-end;
    background: #343434 no-repeat center center / cover;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}
.game-section .item.active {
    width: 500px;
    box-shadow: 12px 40px 40px rgba(0, 0, 0, 0.25);
}
.game-section .item:after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
}
.game-section .item-desc {
    padding: 0 24px 12px;
    color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: translateY(calc(100% - 54px));
    transition: all 0.4s ease-in-out;
}
.game-section .item.active .item-desc {
    transform: none;
}
.game-section .item-desc p {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.4s ease-in-out 0.2s;
}
.game-section .item.active .item-desc p {
    opacity: 1;
    transform: translateY(0);
}
.game-section .owl-theme.custom-carousel .owl-dots {
    margin-top: -20px;
    position: relative;
    z-index: 5;
}

/* Partnership Logolar覺 */
.home-accredited {
    padding: 4rem 0;
    background-color: #f9fafb; /* bg-gray-50 */
}

.acc-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease;
}

.acc-box:hover {
    transform: translateY(-5px);
}

.acc-box img.w-full {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.acc-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 1rem;
}

.acc-text span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.acc-text img {
    width: 1rem;
    height: 1rem;
}

.acc-buttons {
    margin-top: auto;
}

.acc-button {
    font-size: 0.875rem; /* text-sm */
}

/* Fancybox Modal */
.fancybox-content {
    background: #ffffff;
    border-radius: 0.5rem;
    max-width: 600px;
    margin: auto;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Responsive CSS */
@media (min-width: 992px) and (max-width: 1199px) {
    .game-section {
        padding: 50px 30px;
    }
    .game-section .item {
        margin: 0 12px 60px;
        width: 260px;
        height: 360px;
    }
    .game-section .item.active {
        width: 400px;
    }
    .game-section .item-desc {
        transform: translateY(calc(100% - 46px));
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .game-section {
        padding: 50px 30px 40px;
    }
    .game-section .item {
        margin: 0 12px 60px;
        width: 240px;
        height: 330px;
    }
    .game-section .item.active {
        width: 360px;
    }
    .game-section .item-desc {
        transform: translateY(calc(100% - 42px));
    }
}
@media (max-width: 767px) {
    .game-section {
        padding: 30px 15px 20px;
    }
    .game-section .item {
        margin: 0 10px 40px;
        width: 200px;
        height: 280px;
    }
    .game-section .item.active {
        width: 270px;
        box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.25);
    }
    .game-section .item-desc {
        padding: 0 14px 5px;
        transform: translateY(calc(100% - 42px));
    }
}
.facility-card {
    background: linear-gradient(145deg, #f9fafb, #e5e7eb); /* Hafif gri degrade */
    border-radius: 12px;
    border: 1px solid rgba(179, 26, 47, 0.1); /* Hafif primary renk tonunda kenarlık */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(179, 26, 47, 0.3);
}

.facility-card .icon-circle {
    background-color: rgba(179, 26, 47, 0.1);
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-card h3 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700;
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 0.5rem;
}

/* GAU Standards Cards - Icon Background Hover */
.group:hover [style*="background-color: rgba(179, 26, 47"] {
    background-color: rgba(179, 26, 47, 0.9) !important;
}

.facility-card p {
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* text-gray-600 */
}