/* 
   TRT RATELVAK - Custom Modern & Responsive CSS Document
   Aesthetics: Premium, Clean, Modern Typography, Responsive Design
*/

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

:root {
    --primary-color: #d6001c;
    /* TRT Red */
    --primary-hover: #b00014;
    --secondary-color: #102a43;
    /* Dark Navy Mavi */
    --text-color: #334e68;
    --text-muted: #627d98;
    --bg-light: #f0f4f8;
    --bg-white: #ffffff;
    --border-color: #d9e2ec;
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.07);
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER SECTION */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 800;
    font-size: 28px;
    padding: 2px 16px;
    border-radius: 6px;
    letter-spacing: 1px;
    line-height: 1.1;
    display: inline-block;
}

.logo-sub {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 2px;
    margin-left: 2px;
    text-transform: uppercase;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    font-weight: 500;
    font-size: 15px;
    color: var(--secondary-color);
    padding: 10px 0;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-item.active::after,
.nav-item:hover::after {
    width: 100%;
}

/* Action Buttons */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(214, 0, 28, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(214, 0, 28, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(214, 0, 28, 0.1);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1010;
}

.hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    position: relative;
    background-color: var(--bg-white);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
}

.hero-content {
    padding: 60px 0;
    z-index: 2;
    max-width: 520px;
}

.hero-title {
    font-size: 46px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-weight: 400;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 24px;
    height: 6px;
    background-color: #cbd5e1;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    width: 32px;
}

.dot:hover:not(.active) {
    background-color: #94a3b8;
}

/* Hero Image & Fade Overlay */
.hero-image-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 15%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 65%);
}

/* MAIN CARDS SECTION */
.info-cards {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(214, 0, 28, 0.2);
}

/* Card Header */
.card-header {
    margin-bottom: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
}

.card-body {
    flex-grow: 1;
}

.card-footer {
    margin-top: 20px;
}

/* Read More Link */
.card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--primary-hover);
    gap: 10px;
}

/* Card 1: Başkan'dan Mesaj */
.president-content {
    display: flex;
    gap: 15px;
}

.president-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.president-text-wrapper {
    display: flex;
    flex-direction: column;
}

.president-name {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 2px;
}

.president-title {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.president-desc {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.5;
}

/* Card 2: Duyurular */
.announcements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.announcement-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f4f8;
}

.announcement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.announcement-main {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.announcement-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.announcement-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.announcement-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

.announcement-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 10px;
}

/* Card 3: Hızlı Erişim */
.quick-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-link-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

.quick-link-item a:hover {
    color: var(--primary-color);
}

.quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--primary-color);
    flex-shrink: 0;
}

.quick-icon-circle {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.quick-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.quick-icon-circle svg {
    width: 12px;
    height: 12px;
}

/* FOOTER SECTION */
footer {
    background-color: #fafbfc;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-info-block {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-info-icon {
    background-color: rgba(214, 0, 28, 0.05);
    color: var(--primary-color);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-info-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-info-content {
    display: flex;
    flex-direction: column;
}

.footer-info-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.footer-info-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-bottom {
    background-color: #2b303b;
    padding: 15px 0;
    text-align: center;
}

.copyright {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 400;
}

/* RESPONSIVE DESIGN */

/* Mobile Menu Slide In Style */
.mobile-nav {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--bg-white);
    z-index: 999;
    transition: var(--transition);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    width: 100%;
    gap: 20px;
}

.mobile-nav .nav-item {
    font-size: 18px;
    width: 100%;
    padding: 5px 0;
}

.mobile-nav .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-top: 20px;
}

.mobile-nav .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-item {
        font-size: 14px;
    }

    .hero-title {
        font-size: 38px;
    }

    .cards-grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {

    /* Hide Desktop Navigation & Actions */
    .nav-menu,
    .header-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 50px 0;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image-wrapper {
        position: relative;
        width: 100%;
        height: 300px;
        order: -1;
    }

    .hero-image {
        object-position: center;
    }

    .hero-overlay {
        background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 30%, rgba(255, 255, 255, 0) 100%);
    }

    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 24px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .card {
        padding: 20px;
    }

    .president-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .president-img {
        width: 100px;
        height: 100px;
    }

    .announcement-date {
        font-size: 11px;
    }
}