/* Add these rules to prevent horizontal scrolling */
html, body {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.hvrCard {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.row{
    justify-content: center;
}
/* All cards scale down when any card is hovered */
.row:hover>.hvrCard {
    transform: scale(0.7);
    
}

/* Hovered card scales up */
.row:hover>.hvrCard:hover {
    transform: scale(1.1);
    z-index: 100;
}



.hero-section {
    padding: 120px 0 60px;
    background-color: #f8f9fa;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a2b49;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #3508da;
    margin-bottom: 2rem;
}

.bi{
    width: 40px;
    height: 40px;
    line-height: 40px;
    transition:transform 0.5s ease;
    
}
.bi-facebook:hover{
    color: #0056b3;
    
    transition: transform 0.5s ease;
}
.bi-twitter:hover{
    color: #0056b3;
    
    transition: transform 0.5s ease;
}
.bi-instagram:hover{
    color: #be295b;
}
.bi-github:hover{
    
    color: black;

}




.carousel {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
    border-radius: 10px;
    width: 100%;
}

.single-card-container {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    padding: 15px;
}

.carousel .card {
    transform: none;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel .card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.carousel .card-img-top {
    /* height: 300px; */
    object-fit: cover;
    width: 100%;
    height: 25vw;
    margin: 0;
    padding: 0;
}

.carousel .card-body {
    padding: 1rem;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.carousel .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.carousel .card-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev:hover .carousel-arrow,
.carousel-control-next:hover .carousel-arrow {
    background-color: rgba(0, 86, 179, 0.9);
    transform: scale(1.1);
}



.starter {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 80px 20px;
}

.starter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for better text visibility */
    z-index: 1;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animated-text {
    position: relative;
    z-index: 2;
    color: white;
}

.animated-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1.5s ease-out;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.animated-text p {
    font-size: 1.5rem;
    animation: fadeInUp 1.5s ease-out;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.dropdown-menu {
    background-color: #343a40;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-top: 8px;
}

.dropdown-item {
    color: #fff;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateX(5px);
}

/* Gündem Page Styles */
.featured-news .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-news .card:hover {
    transform: translateY(-5px);
}

.featured-news .card-img-top {
    height: 300px;
    object-fit: cover;
}

.badge {
    padding: 8px 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .badge {
    position: relative;
    z-index: 1;
}

.card-title {
    font-weight: 600;
    margin-top: 0.5rem;
}

.newsletter-signup {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.newsletter-signup .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-signup .form-control {
    border-radius: 4px 0 0 4px;
    border: 1px solid #ced4da;
}

.newsletter-signup .btn {
    border-radius: 0 4px 4px 0;
    padding: 8px 20px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link .card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-link:active .card {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.featured-news .card-link .card {
    height: 100%;
}

/* Update existing card styles */
.featured-news .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-news .card-img-top {
    height: 300px;
    object-fit: cover;
}


/* If the carousel is causing overflow, add this */


/* Add these responsive styles at the end of the file */
@media screen and (max-width: 768px) {
    .carousel {
        max-width: 100%;
        padding: 10px;
    }

    .carousel .card-img-top {
        height: 250px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev {
        left: -15px;
    }

    .carousel-control-next {
        right: -15px;
    }
}

@media screen and (max-width: 576px) {
    .carousel .card-img-top {
        height: 200px;
    }

    .carousel .card-title {
        font-size: 1rem;
    }

    .carousel .card-text {
        font-size: 0.85rem;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
    }
}

/* Mobile styles for 375px devices */
@media screen and (max-width: 375px) {
    .carousel {
        max-width: 300px;
        margin: 5px auto;
        padding: 2px;
    }

    .single-card-container {
        max-width: 280px;
        padding: 10px;
    }

    .carousel .card-img-top {
        height: 125px;
        margin: 2px;
        padding: 10px;
    }

    .carousel .card-body {
        padding: 0.4rem;
    }

    .carousel .card-title {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }

    .carousel .card-text {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .carousel-arrow {
        width: 20px;
        height: 20px;
    }

    .carousel-arrow i {
        font-size: 12px;
    }

    .carousel-control-prev {
        left: -8px;
    }

    .carousel-control-next {
        right: -8px;
    }

    /* Additional mobile adjustments */
    .animated-text h1 {
        font-size: 2rem;
    }

    .animated-text p {
        font-size: 1rem;
    }

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

    .hero-text {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }
}
