/*********************************************************************************

	Template Name: Template Full Name Here
	Description: A perfect template to build beautiful and unique medical websites. It comes with nice and clean design.
	Version: 1.0

	Note: This is custom css.

**********************************************************************************/

/* Global Font Family - Inter */
body, html {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

* {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Global Font Weight - Normal (No Bold) */
* {
    font-weight: 400 !important;
}

/* Global Text Justify - Sağa Sola Hizalama */
p {
    text-align: justify !important;
}

/* Metin içerikleri için justify */
.about-content-modern p,
.service-hero p,
.contact-area p,
.services-area p,
.section-content p,
.in-section p,
.page-content p,
main p,
article p,
section p,
div p,
li:not(.breadcrumb-area li):not(.in-navigation li):not(.dropdown-menu-nav li),
td p,
th p,
.widget-content p,
.service-card-modern p,
.value-card-modern p,
.vision-mission-card p,
.project-card-modern p {
    text-align: justify !important;
}

/* Başlıklar, navigasyon ve özel elementler için justify'i kaldır */
h1, h2, h3, h4, h5, h6,
.section-title,
.section-title *,
.breadcrumb-area,
.breadcrumb-area *,
.in-navigation,
.in-navigation *,
.dropdown-menu-nav,
.dropdown-menu-nav *,
.header-bottomarea,
.header-bottomarea *,
.footer-area,
.footer-area *,
button,
button *,
a:not(p a),
input,
select,
textarea,
label,
.v4-hero-title,
.v4-hero-subtitle,
.v4-hero-desc,
.in-button,
.in-button * {
    text-align: inherit !important;
}

/* Override for specific elements that should remain normal */
h1, h2, h3, h4, h5, h6,
.in-navigation > ul > li > a,
.section-title h2,
.section-title h6,
.heroslider-content h1,
.in-service-2-content h5,
.in-feature h4,
.workprogress-block h5,
.widget-title,
.sidebar-title,
.sidebar-section h4 {
    font-weight: 400 !important;
}

/* References Area Hover Effects */
.reference-item {
    transition: all 0.3s ease;
}

.reference-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(212, 165, 116, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.reference-item:hover h4 {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.reference-item:hover .reference-line {
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0.9)) !important;
}

/* Contact CTA Button Hover */
.contact-cta-area .in-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4) !important;
}

/* Language Switcher Styles */
.header-lang {
    display: flex;
    gap: 5px;
}

.lang-switch-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
}

.lang-switch-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.lang-switch-btn.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

/* Language Switcher Visible in Navbar */

/* Hamburger Menu Button */
.hamburger-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
    margin-right: 15px;
}

.hamburger-menu-btn {
    position: relative;
}

.hamburger-menu-btn span {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.header-bottomarea.scrolled .hamburger-menu-btn span {
    background: #2b2b2b;
}

/* Hover effect - transform to X shape, no color change */
.hamburger-menu-btn:hover span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu-btn:hover span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-menu-btn:hover span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Sidebar Menu Overlay */
.sidebar-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-menu-header {
    padding: 30px 25px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #163963;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    color: #7db9e8;
    transform: rotate(90deg);
}

.sidebar-title {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.sidebar-navigation {
    padding: 20px 0;
}

.sidebar-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-navigation ul li {
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-navigation ul li a {
    display: block;
    padding: 18px 25px;
    color: #163963;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-navigation ul li a:hover {
    background: #f5f5f5;
    color: #7db9e8;
    padding-left: 30px;
}

.sidebar-footer {
    padding: 30px 25px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h4 {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section ul li a {
    display: block;
    padding: 10px 0;
    color: #163963;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-section ul li a:hover {
    color: #7db9e8;
    padding-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-menu {
        width: 320px;
    }
    
    .hamburger-menu-btn {
        margin-right: 10px;
    }
}

/* Contact Page Styles */
.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

/* Services Page Styles */
.service-card-modern {
    transition: all 0.3s ease;
}

.service-card-modern:hover,
a:hover .service-card-modern {
    transform: translateY(-10px);
    border-color: #7db9e8 !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

/* Service card link styles */
a[href*="service-"] {
    color: inherit;
    text-decoration: none;
}

a[href*="service-"]:hover {
    text-decoration: none;
}

/* Project Cards Modern Design */
.project-card-modern {
    transition: all 0.3s ease;
}

.project-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}

.project-card-modern:hover img {
    transform: scale(1.1);
}

.project-card-modern:hover .project-overlay {
    opacity: 1 !important;
}

/* Project Modal Styles */
#projectModal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#projectModal img {
    transition: transform 0.3s ease;
}

#projectModal img:hover {
    transform: scale(1.05);
}

#closeModal:hover {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Image Lightbox Styles */
#imageLightbox {
    animation: fadeIn 0.3s ease;
}

#lightboxImage {
    animation: zoomIn 0.3s ease;
    transform: scale(1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-image {
    cursor: zoom-in;
}

#lightboxImage {
    min-width: 500px;
    min-height: 400px;
}

@media (max-width: 768px) {
    #lightboxImage {
        min-width: 90vw;
        min-height: auto;
    }
    
    #prevImage, #nextImage {
        width: 50px !important;
        height: 50px !important;
        font-size: 30px !important;
        line-height: 46px !important;
    }
}

/* About Page Styles */
.value-card-modern {
    transition: all 0.3s ease;
}

.value-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

.vision-mission-card {
    transition: all 0.3s ease;
}

.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

.contact-input:focus {
    outline: none;
    border-color: #7db9e8 !important;
    box-shadow: 0 0 0 3px rgba(125, 185, 232, 0.1);
}

.contact-input::placeholder {
    color: #999;
}

.contact-form-wrapper .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(125, 185, 232, 0.4) !important;
}

/* Header and Navbar Color Changes */

/* Navbar Bottom Area - Navy Blue Background */
.header-bottomarea {
    background: #163963 !important;
    padding: 0 !important;
    transition: background 0.3s ease !important;
    height: 90px !important;
}

.header-bottomarea .header-bottom {
    height: 90px;
    position: relative;
}

/* Navbar Fixed on Scroll */
.header-bottomarea.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Add padding to body when navbar is fixed to prevent content jump */
body.navbar-fixed {
    padding-top: 0;
}

/* Navbar White on Scroll */
.header-bottomarea.scrolled {
    background: #ffffff !important;
}

.header-bottomarea.scrolled .in-navigation > ul > li > a {
    color: #2b2b2b !important;
    font-weight: 400 !important;
    position: relative !important;
}

.header-bottomarea.scrolled .in-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #163963;
    transition: width 0.3s ease, left 0.3s ease;
}

.header-bottomarea.scrolled .in-navigation > ul > li:hover > a {
    color: #163963 !important;
}

.header-bottomarea.scrolled .in-navigation > ul > li:hover > a::after {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
}

.header-bottomarea.scrolled .header-searchtrigger {
    color: #2b2b2b !important;
}

.header-bottomarea.scrolled .header-searchtrigger:hover,
.header-bottomarea.scrolled .header-searchtrigger.is-active {
    color: #163963 !important;
}

.header-bottomarea.scrolled .lang-switch-btn {
    border-color: rgba(43, 43, 43, 0.3) !important;
    color: #2b2b2b !important;
}

.header-bottomarea.scrolled .lang-switch-btn:hover {
    background: rgba(43, 43, 43, 0.1) !important;
    border-color: rgba(43, 43, 43, 0.5) !important;
}

.header-bottomarea.scrolled .lang-switch-btn.active {
    background: rgba(43, 43, 43, 0.2) !important;
    border-color: rgba(43, 43, 43, 0.6) !important;
}

/* Navigation Links - White Text */
.in-navigation > ul > li > a {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    position: relative !important;
    transition: color 0.3s ease !important;
}

.in-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #7db9e8;
    transition: width 0.3s ease, left 0.3s ease;
}

.in-navigation > ul > li:hover > a {
    color: #7db9e8 !important;
}

.in-navigation > ul > li:hover > a::after {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
}

/* Search Trigger - White */
.header-searchtrigger {
    color: #ffffff !important;
}

.header-searchtrigger:hover, .header-searchtrigger.is-active {
    color: #7db9e8 !important;
}

/* Navbar Height Reduction */
.in-navigation > ul > li > a {
    padding: 12px 15px !important;
}

.header-logo {
    padding: 0px 0 !important;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .in-navigation > ul > li > a {
        padding: 12px 10px !important;
    }
}

/* Logo Size Adjustments */
/* Navbar Logo - Absolute positioned to prevent navbar expansion */
.header-logo {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.header-logo img {
    max-height: 195px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Footer Logo */
.widget-info .logo img {
    max-height: 195px;
    width: auto;
    height: auto;
}

/* Unified Navbar Styles */
.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Header Email Button Styles */
.header-email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-email-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #7db9e8;
    transform: scale(1.1);
}

.header-bottomarea.scrolled .header-email-btn {
    background: rgba(43, 43, 43, 0.1);
    border-color: rgba(43, 43, 43, 0.3);
    color: #2b2b2b;
}

.header-bottomarea.scrolled .header-email-btn:hover {
    background: rgba(43, 43, 43, 0.2);
    border-color: rgba(43, 43, 43, 0.5);
    color: #163963;
}

/* Language Switcher in Unified Navbar */
.header-lang {
    display: flex !important;
    gap: 10px;
    align-items: center;
}

.header-lang .lang-switch {
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-lang .lang-switch:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.header-lang .lang-switch .flag-icon {
    width: 16px;
    height: auto;
}

.header-bottomarea.scrolled .header-lang .lang-switch {
    color: #2b2b2b;
    border-color: rgba(43, 43, 43, 0.3);
}

.header-bottomarea.scrolled .header-lang .lang-switch:hover {
    background: rgba(43, 43, 43, 0.1);
    border-color: rgba(43, 43, 43, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .references-area h2 {
        font-size: 32px !important;
    }
    
    .contact-cta-area h2 {
        font-size: 32px !important;
    }
    
    .reference-item {
        margin-bottom: 20px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px !important;
    }
    
    .contact-info-card {
        margin-bottom: 20px;
    }
    
    .service-card-modern {
        margin-bottom: 30px;
    }
    
    .service-card-modern h4 {
        font-size: 20px !important;
    }
    
    .service-card-modern p {
        font-size: 14px !important;
    }
    
    .value-card-modern {
        margin-bottom: 20px;
    }
    
    .vision-mission-card {
        margin-bottom: 30px;
    }
    
    .stat-card-modern {
        margin-bottom: 20px;
    }
    
    .about-content-modern h2 {
        font-size: 32px !important;
    }
    
    .vision-mission-card h4 {
        font-size: 24px !important;
    }
    
    /* Mobile Logo Adjustments */
    .header-logo {
        left: 50px;
    }
    
    .header-logo img {
        max-height: 80px;
    }
    
    .widget-info .logo img {
        max-height: 80px;
    }
    
    /* Email button on mobile */
    .header-email-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* Smaller language switcher on mobile */
    .header-lang .lang-switch {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .header-lang .lang-switch .flag-icon {
        width: 14px;
    }
    
    .header-right-wrap {
        gap: 10px;
    }
}

/* Tablet Responsive */
@media (max-width: 991px) {
    .in-navigation {
        display: none !important;
    }
}

/* ==========================================
   DROPDOWN MENU STYLES
   ========================================== */

/* Dropdown Container */
.in-navigation > ul > li.has-dropdown {
    position: relative;
}

.in-navigation > ul > li.has-dropdown > a i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.in-navigation > ul > li.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu-nav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    border-top: 3px solid #d4a574;
}

.in-navigation > ul > li.has-dropdown:hover .dropdown-menu-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-menu-nav li {
    margin: 0;
}

.dropdown-menu-nav li a {
    display: block;
    padding: 12px 25px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.dropdown-menu-nav li a::after {
    display: none !important;
}

.dropdown-menu-nav li a:hover {
    background: #f8f9fa;
    color: #7db9e8 !important;
    border-left-color: #d4a574;
    padding-left: 30px !important;
}

/* Dropdown separator effect */
.dropdown-menu-nav li:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* First item special styling */
.dropdown-menu-nav li:first-child a {
    border-radius: 5px 5px 0 0;
}

/* Last item special styling */
.dropdown-menu-nav li:last-child a {
    border-radius: 0 0 5px 5px;
}

/* Active/Current page indicator */
.dropdown-menu-nav li a[href="index.html"] {
    background: rgba(125, 185, 232, 0.1);
    border-left-color: #7db9e8;
}

/* Dropdown arrow indicator */
.dropdown-menu-nav::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #d4a574;
}

/* Scrolled navbar dropdown adjustments */
.header-bottomarea.scrolled .dropdown-menu-nav {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Mobile dropdown hidden (handled by sidebar) */
@media (max-width: 991px) {
    .dropdown-menu-nav {
        display: none;
    }
}