/* 
   Sidre Eğitim Vakfı - Main Stylesheet
   Brand Color: #275E4F
   Clean, Minimalist, Flat Design
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #275E4F;
    --primary-hover: #1e4a3e;
    --text-color: #111827;
    --text-light: #6B7280;
    --bg-color: #FFFFFF;
    --border-color: #E5E7EB;
    --container-width: 1200px;
    --container-padding: 20px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Global Container Alignment - CRITICAL */
.main-container,
.header-container,
.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Override existing header flex container to matches alignment */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Main Cards - Minimalist, No Shadow */
.card,
.news-card,
.announcement-item,
.session-card,
.course-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Slightly rounded, not too much */
    overflow: hidden;
    transition: border-color 0.2s ease;
    box-shadow: none !important;
    /* Force removal of shadows */
}

.card:hover,
.news-card:hover,
.announcement-item:hover,
.session-card:hover,
.course-card:hover {
    border-color: var(--primary-color);
    transform: none !important;
    /* Remove unnecessary movement */
}

/* Typography & Spacing */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-line {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* Utilities */
.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

.hover\:text-primary:hover {
    color: var(--primary-color);
}

/* Slider Clean up */
.slider-container {
    border-radius: 0;
    /* Remove rounded corners for full width feel or keep basic */
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Legibility only */
}

/* Specific Page Fixes */
.about-hero,
.kvkk-content,
.detail-content,
.schedule-container {
    padding: 40px 0;
}

/* Buttons - Minimal */
.btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    box-shadow: none;
}

.btn:hover,
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: none;
}

/* Footer Layout */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
    display: block;
}

.footer-desc {
    opacity: 0.9;
    font-size: 0.95rem;
    max-width: 400px;
    margin-top: 15px;
}

.footer-links-col h4,
.footer-contact-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-links-col ul li a:hover {
    opacity: 1;
}

.footer-contact-col p {
    color: white;
    opacity: 0.9;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-contact-col p strong {
    display: block;
    margin-bottom: 5px;
    opacity: 0.7;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-signature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-signature strong {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 2px;
}

/* Underline effect for the name */
.footer-signature strong::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.footer-signature:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.footer-signature:hover strong {
    color: #ffffff;
}

.footer-signature:hover strong::after {
    width: 100%;
}

/* Words Animation (Footer) */
.footer-animation {
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.words {
    display: inline-block;
    position: relative;
    height: 1.5em;
    overflow: hidden;
    vertical-align: bottom;
    width: 140px;
    /* Adjusted width */
    text-align: left;
}

.word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    white-space: nowrap;
    font-weight: 600;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.word.active {
    opacity: 1;
}

@keyframes slideUpIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.slide-up-in {
    animation: slideUpIn 0.5s forwards;
}

.slide-up-out {
    animation: slideUpOut 0.5s forwards;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-logo {
        margin: 0 auto 15px auto;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-animation {
        justify-content: center;
    }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}