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

:root {
    --mgd-dark-blue: #253573;
    /* Ref: #232a5c - Koyu Lacivert */
    --mgd-medium-blue: #2c6e98;
    /* Ref: #2c6e98 - Orta Mavi */
    --mgd-light-blue: #3baaf2;
    /* Ref: #3baaf2 - Açık Mavi */
    --mgd-text-dark: #1a1a1a;
    --mgd-gray-bg: #f8f9fa;
    --mgd-border-radius: 50px;
    /* Yuvarlak hatlar */
    --mgd-btn-radius: 30px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--mgd-text-dark);
    overflow-x: hidden;
    background-color: #fff;
}

/* Utils */
.bg-mgd-dark {
    background-color: var(--mgd-dark-blue) !important;
}

.bg-mgd-medium {
    background-color: var(--mgd-medium-blue) !important;
}

.bg-mgd-light {
    background-color: var(--mgd-light-blue) !important;
}

.text-mgd-dark {
    color: var(--mgd-dark-blue) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

/* Top Bar */
/* Header Top Style Overrides */
.main-header .header-top {
    background-color: #25283a !important;
    padding: 0;
}

.main-header .header-top .inner {
    padding-left: 260px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .main-header .header-top .inner {
        padding-left: 15px !important;
        flex-direction: column;
        gap: 10px;
    }
}

.header-top .social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top .social-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
    list-style: none;
}

.header-top .social-links li {
    list-style: none;
}

.header-top .social-links li a {
    background: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    transition: color 0.3s ease;
}

.header-top .social-links li a:hover {
    color: #fff !important;
}

.header-top .top-right .info {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-top .top-right .info li {
    list-style: none;
    position: relative;
    padding: 0 15px;
    display: flex;
    align-items: center;
}



.header-top .top-right .info li:last-child:after {
    display: none;
}

.header-top .top-right .info li a {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.header-top .top-right .info li a:hover {
    opacity: 0.8;
}

.header-top .top-right .info li a .icon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Main Navbar */
.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    max-height: 75px;
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--mgd-dark-blue) !important;
}

/* Dropdown Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 10px 0;
    margin-top: 15px;
    border-top: 3px solid var(--mgd-dark-blue);
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 8px 20px;
    font-weight: 500;
    color: #555;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--mgd-dark-blue);
}

/* Nav Buttons (Bağışçımız Ol / Gönüllümüz Ol) */
.btn-nav-primary {
    background-color: var(--mgd-dark-blue);
    color: white;
    border-radius: var(--mgd-btn-radius);
    padding: 10px 25px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    transition: all 0.3s;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nav-primary:hover {
    background-color: #151a3b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 42, 92, 0.3);
}

/* Hero Section */
.hero-slider .carousel-item {
    height: 750px;
    /* Increased height */
    background-color: #000;
}

.hero-slider img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.55;
    /* Dark overlay effect */
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    z-index: 10;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero {
    background-color: var(--mgd-dark-blue);
    color: white;
    padding: 15px 50px;
    border-radius: var(--mgd-btn-radius);
    font-weight: 600;
    text-transform: capitalize;
    border: none;
    font-size: 1rem;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    background-color: var(--mgd-medium-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Carousel Indicators/Arrows to Match Design */
.carousel-control-prev,
.carousel-control-next {
    width: 80px;
    opacity: 1;
}

.carousel-arrow-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-arrow-box:hover {
    background-color: var(--mgd-dark-blue);
    border-color: var(--mgd-dark-blue);
}

.carousel-arrow-box i {
    color: white;
    font-size: 1.2rem;
}

/* Info Cards Section */
.info-cards-container {
    margin-top: -120px;
    /* Overlap amount */
    position: relative;
    z-index: 20;
    padding-bottom: 5rem;
}

/* Torn Paper Effect (CSS Clip Path) */
.torn-paper-wrapper {
    position: relative;
    width: 100%;
}

.torn-paper-top {
    position: absolute;
    top: -30px;
    /* Adjust to sit on top of the section */
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 v100 h1000 v-100 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,-10 -60,0 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 v100 h1000 v-100 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 c-20,10 -40,-10 -60,0 c-20,-10 -40,0 -60,-10 c-20,10 -40,0 -60,10 c-20,-10 -40,0 -60,-10 z' fill='black'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    z-index: 15;
    /* Since we can't trust the reliable rendering of mask-image without an SVG file, we'll try a simpler approach or just overlap with cards */
    display: none;
    /* Disabling for now, using card overlap style */
}

.info-card {
    border-radius: 20px;
    padding: 3rem 2rem;
    color: white;
    text-align: center;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-card-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: auto;
    /* Push button to bottom */
    line-height: 1.6;
    padding-bottom: 2rem;
}

.btn-card {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 10px 35px;
    border-radius: var(--mgd-btn-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: auto;
}

.btn-card:hover {
    background-color: white;
    color: var(--mgd-dark-blue);
    border-color: white;
}

/* Section Common */
.section-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    display: block;
    margin-bottom: 5px;
    font-family: 'Times New Roman', serif;
    /* Or similar serif font for italic subtitles usually seen */
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

/* Nav Arrows for Sections */
.nav-arrow-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s;
}

.nav-arrow-btn:hover {
    background: var(--mgd-dark-blue);
    color: white;
    border-color: var(--mgd-dark-blue);
}

/* Post Cards */
.post-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.post-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(35, 42, 92, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-card-body {
    padding: 1.5rem;
    text-align: center;
}

.post-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin: 0;
    text-transform: uppercase;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--mgd-dark-blue);
}

/* Footer Section */
footer {
    background-color: var(--mgd-dark-blue);
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
    font-size: 0.9rem;
}

.footer-text {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 0.85rem;
}

.social-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important;
    text-align: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a span,
.social-links a i {
    line-height: 1 !important;
    display: flex !important;
}

.social-links a:hover {
    background-color: var(--mgd-light-blue);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slider .carousel-item {
        height: 600px;
    }

    .info-cards-container {
        margin-top: 30px;
    }
}

/* Sticky Header Logo Fix */
.sticky-header .logo img {
    max-height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
}

/* Header Logo Fix */
.main-header .header-upper .logo-box .logo {
    background-color: var(--mgd-dark-blue) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.main-header .header-upper .logo img {
    max-width: 160px !important;
    height: auto !important;
    display: block;
}

.main-header .header-upper .logo-box .logo:before {
    background-color: var(--mgd-dark-blue) !important;
}

/* Footer Logo Fix */
.main-footer .footer-logo img {
    max-width: 200px !important;
    height: auto !important;
}

/* Video Embed Styles */
.video-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.video-container .embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.video-container .embed-responsive::before {
    display: block;
    content: "";
    padding-top: 56.25%;
}

.video-container .embed-responsive .embed-responsive-item,
.video-container .embed-responsive iframe,
.video-container .embed-responsive embed,
.video-container .embed-responsive object,
.video-container .embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container .embed-responsive-16by9::before {
    padding-top: 56.25%;
}

.video-container .embed-responsive-4by3::before {
    padding-top: 75%;
}

/* Media Section Styles */
.media-section {
    margin-bottom: 40px;
}

.media-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mgd-dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mgd-light-blue);
    display: inline-block;
}

/* Download Box Styles */
.download-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.download-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.download-info {
    flex-grow: 1;
}

.download-info h5 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.download-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.download-action {
    flex-shrink: 0;
}

.download-item .theme-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-icon {
        width: 50px;
        height: 50px;
    }
    
    .download-icon i {
        font-size: 1.5rem;
    }
}

/* Logo Styles */
.main-header .header-upper .logo-box .logo {
    background-color: var(--mgd-dark-blue) !important;
    border-radius: 8px;
}

.main-header .header-upper .logo-box .logo img {
    max-width: 190px !important;
    height: auto !important;
    max-height: 160px;
}

.sticky-header .logo img {
    max-height: 55px !important;
    width: auto !important;
    max-width: 180px !important;
}

.mobile-menu .nav-logo img {
    max-width: 150px !important;
    height: auto !important;
    max-height: 55px;
}

/* Equal Height Cards for Home Page */
.about-section .upper-boxes .row {
    display: flex;
    flex-wrap: wrap;
}

.about-feature-two {
    display: flex;
    height: 100%;
}

.about-feature-two .inner-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.about-feature-two .icon-box {
    flex-shrink: 0;
}

.about-feature-two h4 {
    flex-shrink: 0;
}

.about-feature-two .text {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.about-feature-two .link-box {
    flex-shrink: 0;
    margin-top: auto;
}

.about-feature-two .link-box .theme-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}