/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2a201c;
    background-color: #fff;
}

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

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

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

/* Header */
header {
    background-color: #7f745c;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    height: 90px;
    align-items: center;
}

.nav-menu > li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #fff;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c6ac8a;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 90px);
    overflow: hidden;
    background-color: #f3ebdf; /* Fallback */
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Subtle dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

/* Quick Actions Grid */
.quick-actions {
    padding: 80px 0;
    background-color: #fff;
}

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

.grid-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.icon-wrapper img {
    max-height: 50px;
}

.grid-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #8a6d46;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.grid-item p {
    font-size: 13px;
    color: #747474;
    line-height: 1.5;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2a201c;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: #8a6d46;
    margin: 10px auto 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: start;
}

/* Flip Cards */
.blog-card {
    background-color: transparent;
    perspective: 1000px;
    cursor: pointer;
    width: 100%;
}

.blog-card:nth-child(even) {
    margin-top: 50px;
}

.card-inner {
    position: relative;
    width: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.blog-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-front {
    position: relative;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    z-index: 2;
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    background-color: #7f745c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-front img {
    width: 100%;
    height: auto;
    display: block;
}

.card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

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

.mini-logo {
    max-height: 70px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make logo pure white */
}

.card-back h3 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.card-back h4 {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0.9;
}

.card-back p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.more-link {
    text-align: center;
    margin-top: 40px;
}

.more-link a {
    color: #8a6d46;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.more-link a:hover {
    color: #2a201c;
}

/* Search Bar Section */
.search-bar-section {
    padding: 60px 0;
    background-color: #f7f8fa;
    text-align: center;
}

.search-bar-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2a201c;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
}

.search-form button {
    padding: 0 30px;
    background-color: #8a6d46;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #725a38;
}

/* Footer */
footer {
    background-color: #e7e2dc;
    color: #222120;
    padding: 60px 0 0;
}

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

.widget h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2a201c;
    margin-bottom: 20px;
    position: relative;
}

.widget p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.phone-numbers {
    font-weight: 600;
    color: #8a6d46;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 50%;
    color: #a19e9a;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #8a6d46;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #777;
}

.back-to-top {
    color: #a19e9a;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    .nav-menu {
        display: none; /* Hide for mobile in this simple demo */
    }
    .mobile-menu-toggle {
        display: block;
        color: #fff;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #7f745c; /* Theme color */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-content img {
    max-height: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Dropdown Menu */
/* Dropdown Menu - Default (Opens Upwards when in bottom half of screen) */
.nav-menu .sub-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    top: auto;
    background-color: #fff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
}

/* 2. Seviye Dropdown - Yukarı doğru açılırken alttan hizala */
.nav-menu .sub-menu .sub-menu {
    bottom: 0;
    top: auto;
    left: 100%;
}

/* Dropdown Menu - Opens Downwards when header is in top half of screen */
header.opens-down .nav-menu .sub-menu {
    top: 100%;
    bottom: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 2. Seviye Dropdown - Aşağı doğru açılırken üstten hizala */
header.opens-down .nav-menu .sub-menu .sub-menu {
    top: 0;
    bottom: auto;
    left: 100%;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    text-align: left;
    transition: background 0.3s;
}

.nav-menu .sub-menu li a:hover {
    background-color: #f5f1ea;
    color: #8a6d46;
}

.nav-menu .sub-menu li a::after {
    display: none; /* No underline for submenu items */
}

/* Submenu arrow colors */
.nav-menu i {
    color: #C5AD80;
    font-size: 12px;
    margin-left: 5px;
}

/* ==========================================================================
   Page Styles (Added for new pages)
   ========================================================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #7f745c 0%, #a3957a 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.breadcrumb a {
    color: #fff;
}

.breadcrumb span {
    color: #c6ac8a;
}

/* Content Section */
.page-section {
    padding: 80px 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Rich Content (Text heavy pages) */
.rich-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.rich-content p {
    margin-bottom: 20px;
}

.rich-content h2 {
    color: #2a201c;
    margin: 40px 0 20px;
    font-size: 24px;
}

/* Premium Grid Cards */
.premium-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

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

.card-img {
    position: relative;
    overflow: hidden;
}

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

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

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 18px;
    color: #2a201c;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-body p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

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

/* Forms */
.premium-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.premium-form .form-group {
    margin-bottom: 20px;
}

.premium-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2a201c;
    margin-bottom: 8px;
}

.premium-form input, 
.premium-form textarea, 
.premium-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.premium-form input:focus, 
.premium-form textarea:focus {
    border-color: #8a6d46;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(138, 109, 70, 0.1);
    outline: none;
}

.premium-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #8a6d46;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.premium-btn:hover {
    background-color: #725a38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 109, 70, 0.3);
}

/* Responsive Grid */
@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .page-header {
        padding: 50px 0;
    }
    .page-header h1 {
        font-size: 32px;
    }
}

/* Contact Page Styles */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    color: #8a6d46;
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: #faf1e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 16px;
    color: #2a201c;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-text p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* Partner Cards */
.partner-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #c6ac8a;
}

.partner-card h3 {
    color: #2a201c;
    font-size: 18px;
    font-weight: 600;
}

/* Doctor Cards */
.doctor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

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

.doctor-img {
    height: 300px;
    overflow: hidden;
    background-color: #f7f3ed;
}

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

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

.doctor-info {
    padding: 25px;
}

.doctor-info h3 {
    font-size: 20px;
    color: #2a201c;
    margin-bottom: 5px;
    font-weight: 600;
}

.doctor-info p {
    font-size: 14px;
    color: #8a6d46;
    font-weight: 500;
    margin-bottom: 15px;
}

.doctor-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.doctor-social a {
    width: 30px;
    height: 30px;
    background: #faf1e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a6d46;
    font-size: 14px;
    transition: all 0.3s ease;
}

.doctor-social a:hover {
    background: #8a6d46;
    color: #fff;
}

/* Accordion (FAQ) */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    color: #2a201c;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-item summary:hover {
    background: #faf1e6;
}

.faq-item summary::after {
    content: '\f078'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: #8a6d46;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 20px;
    border-top: 1px solid #eee;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}
