/* Genel stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
    margin: 0;
}

.container {
    display: flex;
    flex: 1;
    width: 100%;
}

/* Sidebar sabit kalsın */
.sidebar {
    width: 250px;
    background-color: #003366;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
}
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo img {
    width: 100px;
    height: auto;
}

.logo-text {
    margin-top: 15px;
    text-align: center;
}

.logo-text h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-text p {
    color: #f39c12;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.menu {
    list-style-type: none;
    padding-left: 0;
}

.menu li {
    margin-bottom: 20px;
}

.menu li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: #f39c12;
}
.menu a.active {
    background-color: #003366;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    padding: 10px;
}

/* İçerik sidebar'dan sonra başlasın */
.content {
    margin-left: 250px;
    padding: 0px;
    background-color: #ecf0f1;
    flex: 1;
    overflow-y: auto;
}

#contentTitle {
    background-color: #CCE6FF;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 48px;
    text-align: center;
    color: #003366;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 70px 20px;
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

/* Grid */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px;
}

.event-card {
    background-color: #aee4f6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    width: 100%;
    padding-top: 100%;
}

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

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

.event-details {
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 10px 10px;
}

.event-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.event-details p {
    font-size: 14px;
    color: #7f8c8d;
}

/* Modal */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-left {
    width: 40%;
}

.modal-right {
    width: 55%;
    padding-left: 170px;
}

.modal-right h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.modal-right p {
    font-size: 16px;
    margin-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}

/* Blur effect */
body.blur {
    filter: blur(5px);
    pointer-events: none;
}

body.modal-open {
    overflow: hidden;
}

.event-modal.active ~ .container {
    filter: blur(5px);
    pointer-events: none;
}

/* Footer sadece content kadar geniş olsun ve sidebar'a dokunmasın */
.footer {
    margin-left: 250px;
    width: calc(100% - 250px);
    background-color: #ffffff;
    color: #003366;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-top: 2px solid #dce3ea;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #003366;
    border-bottom: 1px solid #dce3ea;
    padding-bottom: 5px;
}

.footer-section p {
    margin: 5px 0;
    color: #4a4a4a;
    font-size: 15px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #7a8a99;
    border-top: 1px solid #dce3ea;
    padding-top: 10px;
}

.social-icons i {
    font-size: 18px;
    margin-right: 10px;
    color: #003366;
    cursor: pointer;
    transition: color 0.3s;
}

.social-icons i:hover {
    color: #f39c12;
}
/* Sayfalama Stilleri */
.pagination-container {
    width: 100%;
    padding: 30px 20px;
    background-color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin: 0 2px;
    background-color: #ffffff;
    color: #003366;
    text-decoration: none;
    border: 2px solid #003366;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-item:hover:not(.disabled) {
    background-color: #003366;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.pagination-item.active {
    background-color: #003366;
    color: #ffffff;
    border-color: #003366;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.2);
}

.pagination-item.disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}
.menu li a.active {
    color: #FFA500;
}
.menu li a {
    padding-left: 10px;
}
.community-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}
.community-card {
    text-decoration: none;
    color: inherit;
}
.card-content {
    background-color: white;
    border: 2px solid #003366;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.card-content:hover {
    transform: translateY(-5px);
}
.card-content img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}
.card-content h3 {
    color: #003366;
    margin: 0;
    font-size: 18px;
}
/* Mobil responsive sayfalama */
@media (max-width: 768px) {
    .pagination-container {
        margin-left: 0;
        width: 100%;
        padding: 20px 10px;
    }
    
    .pagination-item {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        padding: 15px 5px;
    }
    
    .pagination-item {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }
}

/* Hamburger Menü */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #003366;
    padding: 10px;
    border-radius: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        height: 100dvh; /* iPhone Safari için gerçek ekran boyu */
        /* Fallback */
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        background: #003366;
    }
    .sidebar.active {
        left: 0;
    }
    .content {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }
    .explore-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 10px 0;
    }
    .footer {
        margin-left: 0;
        width: 100%;
        padding: 20px 10px 10px;
    }
    #contentTitle {
        font-size: 34px;
        padding: 0 10px;
    }
}
@media (max-width: 480px) {
    .sidebar {
        width: 320px;
        height: 100dvh; /* iPhone Safari için gerçek ekran boyu */
        /* Fallback */
        height: 100vh;
        left: -320px;
    }
    .explore-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 5px 0;
    }
    .footer {
        padding: 10px 5px 5px;
    }
    #contentTitle {
        font-size: 28px;
        padding: 0 5px;
    }
}