/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Top Header Styles */
.top-header {
    background-color: white;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.logo {
    color: #e85d5d;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    text-transform: lowercase;
}

.logo:hover {
    color: #e85d5d;
}

/* Header Search */
.header-search {
    width: 400px;
}

.header-search .input-group {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.header-search .form-control {
    border: none;
    padding: 0.5rem 1rem;
}

.header-search .form-control:focus {
    box-shadow: none;
}

.btn-register {
    color: #e85d5d;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: 500;
}

.btn-register:hover {
    color: #d45555;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.5rem 0.8rem !important;
}

.nav-link:hover {
    color: #e85d5d !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #e85d5d;
}

/* Banner Section */
.banner-section {
    position: relative;
    margin-bottom: 50px;
}

.banner-section img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.55);
}

.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 3.5rem;
    color: #fefefe;
    margin-bottom: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.sub-title {
    font-family: 'Alex Brush', cursive;
    font-size: 3.6rem;
    color: #e85d5d;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1;
}

/* Search Box */
.search-box-container {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
}

.search-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
}

.search-box .form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.search-box .input-group-text {
    background-color: transparent;
    border-right: none;
    height: 42px;
}

.search-box .form-select {
    border-left: none;
    padding-left: 0;
    font-size: 0.9rem;
    height: 42px;
}

.search-box .form-select:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.search-btn {
    background-color: #e85d5d;
    color: white;
    height: 42px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #d45555;
    color: white;
}

/* Cards Section */
.cards-section {
    background-color: #f8f9fa;
    padding: 7rem 0 4rem 0;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.card-text {
    color: #666;
}

.btn-primary {
    background-color: #e85d5d;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #d45555;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    padding: 3rem 0;*/
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    
}

/* Organizations Section */
.organizations-section {
    padding-top: 4rem;
    background-color: #fff;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: #333;
}

.view-all {
    color: #e96060;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #d45555;
}

/* Category Menu */
.category-menu {
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.category-menu .nav {
    gap: 2rem;
}

.category-menu .nav-link {
    color: #666 !important;
    font-weight: 500;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: color 0.3s ease;
}

.category-menu .nav-link:hover {
    color: #e96060 !important;
}

.category-menu .nav-link.active {
    color: #e96060 !important;
}

.category-menu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e96060;
}

/* Organization Cards */
.org-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

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

.org-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.org-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.org-card:hover .org-card-image img {
    transform: scale(1.05);
}

.org-card-body {
    padding: 1.2rem;
}

.org-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.org-location {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* All Categories Section */
.all-categories-section {
    background-color: #fff;
    padding: 5rem 0;
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* 30% darkening */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.3s ease;
}

.category-title {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
    padding: 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.category-card:hover .category-title {
    transform: translateY(-5px);
}

/* Latest Content Section */
.latest-content-section {
    background-color: #fff;
    padding: 5rem 0;
}

.content-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
    text-align: center;
    max-width: 350px; /* Limit card width */
    margin: 0 auto; /* Center the card in its column */
}

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

.content-card-image {
    position: relative;
    height: 280px; /* Increased height for more vertical appearance */
    overflow: hidden;
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.content-card:hover .content-card-image img {
    transform: scale(1.05);
}

.content-card-body {
    padding: 2rem 1.5rem; /* Increased vertical padding */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    max-width: 85%; /* Slightly narrower content */
}

.content-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.8rem; /* Increased bottom margin */
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    max-width: 85%; /* Slightly narrower content */
}

.read-more {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #e96060;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    text-align: center;
    padding-top: 0.5rem; /* Added some top spacing */
}

.read-more:hover {
    color: #d45555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .banner-section {
        margin-bottom: 80px;
    }

    .banner-section img {
        height: 400px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .sub-title {
        font-size: 2.4rem;
    }
    
    .search-box {
        padding: 1rem;
        margin: 0 1rem;
    }

    .search-box-container {
        bottom: -70px;
    }
    
    .card-img-top {
        height: 180px;
    }

    .category-menu .nav {
        gap: 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-menu .nav-link {
        white-space: nowrap;
    }
    
    .org-card-image {
        height: 160px;
    }

    .category-card {
        height: 250px;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .content-card {
        max-width: 100%; /* Full width on mobile */
    }

    .content-card-image {
        height: 240px; /* Slightly shorter on mobile */
    }

    .content-title {
        font-size: 1.1rem;
    }

    .content-text {
        font-size: 0.9rem;
    }
}

/* Categories Footer Styles */
.categories-footer {
    position: relative;
    z-index: 1;
}

.categories-footer h5 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.categories-footer ul li {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Newsletter Section Styles */
.newsletter-section {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.newsletter-section h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-section p {
    color: #666;
    margin-bottom: 0;
}

.newsletter-section .input-group {
    border-radius: 5px;
    overflow: hidden;
}

.newsletter-section .form-control {
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}

.newsletter-section .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.newsletter-section .btn:hover {
    background-color: #d45555 !important;
}

/* Newsletter Card Styles */
.newsletter-card {
    position: relative;
    margin-top: -80px;
    margin-bottom: -80px;
    z-index: 3;
}

.newsletter-card .card {
    width: 90%;
    margin: 0 auto;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.newsletter-card .card-body {
    padding: 2.5rem;
}

.newsletter-card h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-card p {
    color: #666;
    margin-bottom: 0;
}

.newsletter-card .input-group {
    max-width: 400px;
    border-radius: 5px;
    overflow: hidden;
}

.newsletter-card .form-control {
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}

.newsletter-card .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.newsletter-card .btn:hover {
    background-color: #d45555 !important;
}

/* Updated Footer Logo */
.logo-footer {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    display: inline-block;
    margin-top: 40px;
    margin-bottom: 1.5rem;
}

/* Main Footer Adjustments */
footer {
    position: relative;
   /* padding-top: 80px; */
    z-index: 2;
}

footer .container {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

footer p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

footer .social-icons {
    margin-bottom: 1.5rem;
}

footer hr {
    opacity: 0.2;
    margin: 1.5rem auto;
    width: 100%;
    max-width: 800px;
}

@media (max-width: 768px) {
    .logo-footer {
        margin-top: 30px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    footer .container {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* index.html içinden taşınan stiller */
/* Banner Section Styles */
.banner-section {
    margin-bottom: 60px;
    position: relative;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* Mobile Header Height Adjustment */
@media (max-width: 991.98px) {
    .top-header {
        padding: 0.1rem 0;
    }
    .mobile-header {
        padding: 0.1rem 0;
    }
    .logo {
        font-size: 1rem;
    }
    .mobile-actions .btn {
        padding: 0.05rem 0.2rem;
    }
    .mobile-actions .btn i {
        font-size: 0.8rem;
    }
    .banner-section {
        margin-top: -1rem;
    }
    .hero-content {
        top: 40%;
    }
}

@media (max-width: 576px) {
    .hero-content {
        top: 35%;
    }
}

.search-container {
    position: relative;
    margin-top: -110px;
    z-index: 2;
    padding: 0;
}

.search-box {
    background: white;
    position: relative;
    width: 100%;
}

.search-btn {
    background-color: #e96060;
    color: white;
}

.search-btn:hover {
    background-color: #d45555;
    color: white;
}

.select-wrapper select {
    width: 100%;
    font-size: 14px;
}

.mobile-title {
    font-size: 24px;
}

@media (max-width: 768px) {
    .banner-section {
        margin-bottom: 30px;
    }
    .search-container {
        margin-top: -110px;
        padding: 0 15px;
        max-width: 100%;
    }
    .search-box {
        margin: 0 auto;
        max-width: 450px;
    }
    .mobile-title {
        font-size: 20px;
    }
    .form-select {
        height: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.content-slider {
    padding: 20px 0 40px;
}

.content-slider .swiper-slide {
    width: 85%;
    margin: 0 auto;
}

.content-slider .content-card {
    margin: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #e96060;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .content-slider .swiper-slide {
        width: 90%;
    }
}

.org-slider {
    padding: 0 15px;
    margin: 0 -15px;
    overflow: visible;
}

.org-slider .swiper-slide {
    width: 85%;
}

.org-slider .org-card {
    margin: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.org-slider .org-card-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.org-slider .org-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-slider .org-card-body {
    padding: 15px;
}

.org-slider .org-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.org-slider .org-location {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .btn-primary {
        background-color: #e96060;
        border-color: #e96060;
        font-size: 14px;
        padding: 10px 30px;
    }
    .btn-primary:hover {
        background-color: #d45555;
        border-color: #d45555;
    }
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

.category-title {
    color: white;
    margin: 0;
}

@media (max-width: 768px) {
    .all-categories-section {
        padding: 30px 0;
    }
    .category-card {
        margin-bottom: 0;
    }
    .category-overlay {
        padding: 15px;
    }
    .category-title {
        font-size: 16px;
        line-height: 1.3;
    }
}

.latest-content-slider {
    padding: 0 15px;
    margin: 0 -15px;
    position: relative;
    padding-bottom: 40px;
}

.latest-content-slider .swiper-wrapper {
    padding: 10px 0;
}

.latest-content-slider .swiper-slide {
    width: 100%;
    transition: transform 0.3s ease;
}

.latest-content-slider .swiper-pagination {
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.latest-content-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    opacity: 0.5;
    background-color: #e96060;
}

.latest-content-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #e96060;
}

.content-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .latest-content-slider {
        padding: 0;
        margin: 0;
    }
    .card-content {
        padding: 15px;
    }
    .card-content h3 {
        font-size: 1.1rem;
    }
}

.venue-slider {
    padding: 0 15px;
    margin: 0 -15px;
    overflow: visible;
}

.venue-slider .swiper-slide {
    width: 85%;
}

.venue-slider .org-card {
    margin: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.venue-slider .org-card-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.venue-slider .org-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-slider .org-card-body {
    padding: 15px;
}

.venue-slider .org-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.venue-slider .org-location {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Mobile Search Modal Styles */
#searchModal .modal-header {
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#searchModal .search-input-wrapper {
    position: relative;
}

#searchModal .form-control {
    height: 40px;
    font-size: 16px;
}

#searchModal .form-control:focus {
    box-shadow: none;
}

#searchModal .modal-body {
    background-color: #f8f9fa;
}

#searchModal .btn-outline-secondary {
    border-color: #dee2e6;
    color: #495057;
    font-size: 13px;
    padding: 0.375rem 0.75rem;
}

#searchModal .btn-outline-secondary:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

#searchModal .list-group-item {
    color: #495057;
    font-size: 15px;
}

#searchModal .list-group-item:hover {
    color: #e96060;
}

#searchModal .bi {
    font-size: 18px;
    color: #6c757d;
}

#searchModal .category-group h6 {
    font-size: 13px;
    font-weight: 500;
}

/* Footer Links Styles */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-copyright {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 576px) {
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-links a {
        margin: 0 5px;
    }
}