/* Main Content */
.main-content {
    background-color: #f5f2f2;
    padding-bottom: 30px;
}

/* Hero Carousel */
.hero-section {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.hero-carousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    position: relative;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.carousel-item:hover .hero-image {
    transform: scale(1.03);
}

.hero-side-lines {
    background-color: rgb(42, 79, 159);
    height: inherit;
    width: 15%;
}

.carousel-indicators button {
    background-color: #4cb24c;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    transition: background-color 0.3s ease;
}

.carousel-indicators .active {
    background-color: #3267ea;
}

/* Slider Animation */
.carousel-item {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Section Divider */
.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #4cb24c, transparent);
    margin: 30px auto;
    max-width: 1200px;
}

/* Content Sections */
.content-section {
    max-width: 1200px;
    margin: 0 auto 30px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.content-section:active {
    transform: translateY(-3px);
}

.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 12px;
}

.section-link {
    color: #3267ea;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    min-height: 44px; /* Touch-friendly */
}

.section-link:active {
    color: #4cb24c;
    transform: scale(0.98);
}

/* Eurodesk Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    padding: 8px;
}

.button-card {
    background: #f8f9fa; /* Light background */
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    min-height: 48px; /* Touch-friendly, reduced for text fit */
    padding: 6px;
}

.button-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.button-card:active {
    background: #4cb24c; /* Green on tap */
    color: #fff;
    transform: translateY(-1px);
}

.button-card .content-body {
    padding: 6px;
    text-align: center;
}

.button-card .content-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.button-card:active .content-title {
    color: #fff; /* White text on tap */
}

/* Content Grid for Faaliyetler and Duyurular */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 10px;
}

.content-card {
    background: #f8f9fa; /* Light background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

.content-card:active {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.content-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:active .content-image {
    transform: scale(1.03);
}

.content-body {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.content-divider {
    border: 0;
    height: 1px;
    background: #4cb24c;
    margin: 8px 0;
}

.content-text {
    font-size: 0.8rem;
    color: #555;
    min-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: center;
}

.content-empty {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    margin: 12px 0;
}

/* Gallery Carousel */
.gallery-carousel {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 12px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:active .gallery-image {
    transform: scale(1.03);
}

/* Gallery Carousel Buttons */
.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
    width: 44px;
    height: 200px; /* Match gallery-image height */
    background: rgba(0,0,0,0.35);
    border-radius: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.gallery-carousel .carousel-control-prev:hover,
.gallery-carousel .carousel-control-next:hover {
    background: rgba(0,0,0,0.5);
}

.gallery-carousel .carousel-control-prev:active,
.gallery-carousel .carousel-control-next:active {
    background: #4cb24c;
    transform: translateY(-50%) scale(0.98);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 22px;
    height: 22px;
    background-size: 100% 100%;
}

/* Map Section */
.map-section {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0;
}

.map-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.map-iframe:hover {
    transform: scale(1.01);
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .button-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    }

    .content-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    .section-link:hover {
        color: #4cb24c;
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .button-card {
        min-height: 44px;
        padding: 5px;
    }

    .button-card .content-body {
        padding: 5px;
    }

    .button-card .content-title {
        font-size: 0.9rem;
    }

    .content-image {
        height: 110px;
    }

    .content-card {
        /* min-height: 240px; */
    }
}

@media (max-width: 767px) {
    .hero-image {
        height: 300px;
    }

    .content-section {
        padding: 12px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .button-card {
        min-height: 40px;
        padding: 4px;
    }

    .button-card .content-body {
        padding: 4px;
    }

    .button-card .content-title {
        font-size: 0.85rem;
    }

    .content-card {
        /* min-height: 220px; */
    }

    .content-image {
        height: 100px;
    }

    .content-title {
        font-size: 1rem;
    }

    .content-text {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .gallery-image {
        height: 150px;
    }

    .gallery-carousel .carousel-control-prev,
    .gallery-carousel .carousel-control-next {
        height: 150px; /* Match gallery-image */
        width: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    .map-iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-image {
        height: 200px;
    }

    .content-section {
        padding: 10px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .button-card {
        min-height: 36px;
        padding: 3px;
    }

    .button-card .content-body {
        padding: 3px;
    }

    .button-card .content-title {
        font-size: 0.8rem;
    }

    .content-card {
        /* min-height: 200px; */
    }

    .content-image {
        height: 90px;
    }

    .content-title {
        font-size: 0.9rem;
    }

    .content-text {
        font-size: 0.7rem;
    }

    .gallery-image {
        height: 120px;
    }

    .gallery-carousel .carousel-control-prev,
    .gallery-carousel .carousel-control-next {
        height: 120px; /* Match gallery-image */
        width: 36px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}

/* Animation for Cards */
.content-card,
.gallery-item,
.button-card {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}