/*
Theme Name: Astra Child
Theme URI: https://ilkerinseyirdefteri.com
Description: Child theme for Astra
Author: Ilker
Author URI: https://ilkerinseyirdefteri.com
Template: astra
Version: 1.0.0
*/

/* Import Parent Theme Styles */
@import url("../astra/style.css");

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

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* General Button Styles */
button, .button, input[type="button"], input[type="submit"], .btn-primary, a.button {
    background-color: #007bff;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    display: inline-block;
    text-transform: none !important;
}

/* General Button Hover */
button:hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover, .btn-primary:hover, a.button:hover {
    background-color: #0056b3;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    text-decoration: none !important;
}

/* Link Styles */
a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}
a:hover {
    color: #0056b3;
}

/* Hero Section */
#intro {
    position: relative;
    background-image: url('https://ilkerinseyirdefteri.com/wp-content/uploads/2019/06/IMG_0873.jpg');
    background-size: cover;
    background-position: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 16px;
}
#intro h1 {
    color: #fff !important;
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.55); /* Gölgeyle fonla kontrast güçlenir */
    line-height: 1.2;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
    color: #ffffff;
    padding: 40px 20px 40px 20px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
    font-size: 1.25rem;
}

/* --- Featured Destinations Section --- */
.featured-destination-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.featured-destination {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    min-height: 370px;
    width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.featured-destination .destination-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(40,40,60,0.38) 0%, rgba(40,40,60,0.38) 60%, rgba(0,0,0,0.68) 100%);
    z-index: 1;
}
.featured-destination .destination-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content and title horizontally */
    justify-content: space-between;
    height: 100%;
}
.featured-destination h3 {
    color: #fff;
    font-weight: 700;
    margin: 0 0 20px 0;
    font-size: 1.6rem;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.8);
    text-align: center;
    width: 100%;
}

.featured-destination .button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    background: transparent;
    margin-top: auto;
}

.featured-destination .button, .featured-destination a.button {
    background-color: #007bff;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    text-transform: none !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.11);
    transition: background 0.3s, box-shadow 0.3s;
    font-size: 1rem;
    margin: 0;
    text-decoration: none !important;
}
.featured-destination .button:hover, .featured-destination a.button:hover {
    background-color: #0056b3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-destination-container {
        flex-direction: column;
        align-items: center;
    }
    .featured-destination {
        width: 90%;
        margin-bottom: 24px;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #f9f9f9;
    color: #666;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}
.site-footer a {
    color: #007bff;
    text-decoration: none;
}
.site-footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}
.custom-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 40px 0;
}
.custom-post-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 0 0 16px 0;
    width: 310px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.custom-post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}
.custom-post-meta {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 16px 16px 4px 16px;
}
.custom-post-card h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 16px 12px 16px;
}
.custom-post-excerpt {
    font-size: 1rem;
    color: #333;
    margin: 0 16px;
}
@media (max-width: 1024px) {
    .custom-posts-grid {
        flex-direction: column;
        align-items: center;
    }
    .custom-post-card {
        width: 92%;
    }
}
.custom-posts-grid-wrapper {
    background: #f3f3f3;      /* Light grey background */
    border-radius: 18px;
    padding: 38px 0 30px 0;
    margin-bottom: 44px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.custom-posts-grid {
    margin-bottom: 0;         /* Remove margin if wrapper is used */
}
