/* =========================================
   Hastane Frontend CSS
   ========================================= */

* { box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-color, #333);
    line-height: 1.6;
    margin: 0;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background: var(--primary) !important; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============ TOP HEADER ============ */
.top-header { background: var(--primary-dark); color: #fff; font-size: 13px; padding: 8px 0; }
.top-header a { color: #fff; opacity: .9; }
.top-header a:hover { opacity: 1; color: #fff; }
.top-nav-left, .top-nav-right { margin: 0; }
.top-nav-left li, .top-nav-right li { list-style: none; }

/* ============ MAIN HEADER ============ */
.main-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.navbar-brand .logo-text { font-size: 22px; color: var(--primary); }
.navbar-nav .nav-link { color: #333; font-weight: 500; padding: 0.7rem 1rem !important; transition: color .2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary); }
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,.1); border-radius: 8px; padding: .5rem; }
.dropdown-item { padding: .6rem 1rem; border-radius: 6px; }
.dropdown-item:hover { background: var(--primary); color: #fff; }
.dropdown-item:hover i { color: #fff !important; }
.mega-menu { min-width: 600px; padding: 1.5rem !important; }

/* ============ HERO SLIDER ============ */
.hero-slider { position: relative; }
.hero-slider .swiper-slide { position: relative; height: 600px; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 60%, transparent 100%); }
.slide-content { position: relative; padding: 100px 0; color: #fff; max-width: 700px; z-index: 2; }
.slide-subtitle { display: inline-block; padding: 6px 18px; background: var(--accent); color: #fff; border-radius: 25px; font-size: 14px; margin-bottom: 1rem; font-weight: 600; }
.slide-title { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.slide-desc { font-size: 18px; margin-bottom: 2rem; opacity: .95; }
.swiper-button-prev, .swiper-button-next { color: #fff !important; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* ============ HERO BOXES ============ */
.hero-boxes { margin-top: -50px; position: relative; z-index: 3; }
.hero-box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; background: #fff; border-radius: 16px; box-shadow: 0 5px 20px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s; text-align: center; color: var(--text-color); height: 100%; }
.hero-box:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,.12); color: var(--primary); }
.hero-box-icon { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 1rem; }
.hero-box h5 { font-size: 14px; margin: 0; font-weight: 600; }

/* ============ SECTION HEADERS ============ */
.section-header { max-width: 700px; margin: 0 auto; }
.section-subtitle { display: inline-block; color: var(--accent); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: .5rem; }
.section-title { font-size: 36px; font-weight: 800; color: var(--primary-dark); margin-bottom: 1rem; }
.section-desc { color: #666; font-size: 16px; }

/* ============ DEPARTMENT CARD ============ */
.department-card { display: block; padding: 2rem 1.5rem; background: #fff; border-radius: 16px; box-shadow: 0 3px 15px rgba(0,0,0,.05); text-align: center; transition: all .3s; color: var(--text-color); height: 100%; }
.department-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,.12); }
.department-icon { width: 75px; height: 75px; margin: 0 auto 1.2rem; border-radius: 20px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.department-card h5 { color: var(--primary-dark); font-weight: 700; margin-bottom: .6rem; }
.department-card p { color: #777; font-size: 14px; margin-bottom: 1rem; }
.department-card .readmore { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ============ DOCTOR CARD ============ */
.doctor-card { display: block; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,.05); transition: all .3s; color: var(--text-color); }
.doctor-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0,0,0,.12); }
.doctor-img { height: 280px; overflow: hidden; background: #f5f5f5; }
.doctor-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.doctor-card:hover .doctor-img img { transform: scale(1.05); }
.doctor-info { padding: 1.2rem; text-align: center; }
.doctor-info h5 { color: var(--primary-dark); font-weight: 700; margin-bottom: .3rem; font-size: 17px; }
.doctor-dept { color: var(--primary); font-size: 14px; font-weight: 500; margin: 0; }

/* ============ ABOUT SECTION ============ */
.about-image img { border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.about-features { margin-top: 2rem; }
.feature-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: start; }
.feature-icon { width: 55px; height: 55px; border-radius: 15px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.feature-item h5 { margin: 0 0 .2rem; color: var(--primary-dark); font-weight: 700; }
.feature-item p { margin: 0; color: #777; font-size: 14px; }

/* ============ NEWS COLUMNS ============ */
.news-column { background: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: 0 3px 15px rgba(0,0,0,.05); height: 100%; }
.news-column-title { color: var(--primary-dark); font-weight: 700; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--primary); font-size: 20px; }
.news-column-title i { color: var(--accent); margin-right: .5rem; }
.news-item { display: flex; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #eee; color: var(--text-color); transition: color .2s; }
.news-item:last-child { border-bottom: none; margin-bottom: .5rem; }
.news-item:hover { color: var(--primary); }
.news-item img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.news-date { font-size: 12px; color: var(--accent); font-weight: 600; }
.news-item h5 { font-size: 14px; margin: .2rem 0 0; line-height: 1.4; }

/* ============ INSTITUTIONS ============ */
.institution-logo { padding: 1rem; background: #fff; border-radius: 12px; height: 120px; display: flex; align-items: center; justify-content: center; }
.institution-logo img { max-width: 100%; max-height: 80px; filter: grayscale(100%); opacity: .7; transition: all .3s; }
.institution-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ============ PAGE HEADER ============ */
.page-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 60px 0 40px; margin-bottom: 0; }
.page-header h1 { font-size: 36px; font-weight: 800; margin-bottom: .5rem; }
.page-header .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,.8); }
.page-header .breadcrumb-item.active { color: #fff; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ============ BLOG CARD ============ */
.blog-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,.05); transition: all .3s; height: 100%; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0,0,0,.12); }
.blog-card-img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-date { color: var(--accent); font-size: 13px; font-weight: 600; }
.blog-card h3 { font-size: 20px; margin: .5rem 0; }
.blog-card h3 a { color: var(--primary-dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: #777; font-size: 14px; margin: 0; }

/* ============ FOOTER ============ */
.site-footer { background: #1a2332; color: #ccc; margin-top: 0; }
.footer-title { color: #fff; margin-bottom: 1.5rem; font-weight: 700; font-size: 18px; position: relative; padding-bottom: .5rem; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--accent); }
.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #ccc; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact li { margin-bottom: .8rem; display: flex; gap: .8rem; align-items: start; }
.footer-contact li i { color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.footer-contact a { color: #ccc; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-right: .5rem; transition: all .3s; }
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom { background: #0f1620; color: #999; font-size: 14px; }
.footer-bottom a { color: #ccc; }
.developer-link { color: var(--accent) !important; }

/* ============ BACK TO TOP ============ */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; border-radius: 50%; background: var(--primary); color: #fff; display: none; align-items: center; justify-content: center; z-index: 999; box-shadow: 0 5px 15px rgba(0,0,0,.2); }
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--primary-dark); color: #fff; }

/* ============ FORMS ============ */
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .25rem rgba(0,102,179,.15); }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .slide-title { font-size: 28px; }
    .hero-slider .swiper-slide { height: 400px; }
    .mega-menu { min-width: auto; }
    .section-title { font-size: 28px; }
}
@media (max-width: 576px) {
    .slide-content { padding: 60px 0; }
    .page-header h1 { font-size: 26px; }
}
