/* Base Styles */
:root {
    --primary-color: #307b97;
    --dark-color: #0b1c39;
    --light-bg: #f5f6fa;
    --text-color: #555555;
    --white: #ffffff;
    --font-main: 'Jost', sans-serif;
    --font-heading: 'Oswald', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.slider-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Header Styles */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.header.sticky {
    position: fixed;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    animation: slideDown 0.5s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 90px;
    width: 100%;
}

.header.sticky .header-container {
    height: 80px;
}

.logo-area {   
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 10;
    width: auto;
    max-width: 300px;
}

.logo-area img {
    max-width: 73%;
    height: auto;
    object-fit: contain;
    padding-left: 32px;
}

/* Nav Area */
.nav-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.main-nav {
    margin-right: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list > li > a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 16px;
    text-transform: capitalize;
    transition: color 0.3s;
    position: relative;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--primary-color);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown > a i {
    font-size: 12px;
    margin-left: 5px;
}

.dropdown {
    position: absolute;
    top: 47px;
    left: 0;
    background: var(--white);
    font-size: 14px;
    min-width: 340px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    transform: translateY(15px);
    z-index: 100;
    border-top: 3px solid var(--primary-color);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}

.dropdown li a {
    display: block;
    padding: 6px 20px;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    color: var(--primary-color);
    padding-left: 25px;
    background: #f8f9fa;
}

/* Header Button */
.header-btn {
    height: 100%;
    display: flex;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.header-btn .btn-primary { 
    padding: 0 20px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    margin: 20px;
}

.header-btn .btn-primary:hover {
    background-color: var(--dark-color);
}

/* Mobile Toggle & Close */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
}

.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--dark-color);
    cursor: pointer;
}

.hero-slider {
    margin-top: 90px;
    position: relative;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 380px;
    height: 100%;
    background-color: var(--dark-color);
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 15%, transparent 16%);
    background-size: 20px 20px;
    z-index: 1;
}

.slider-item {
    height: calc(100vh - 90px);
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(245,246,250,0.95) 0%, rgb(245 246 250 / 22%) 45%, rgba(245,246,250,0) 100%);
}

.slider-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.slider-content h4 {
    color: var(--primary-color);
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1;
}

.slider-content h2 {
    color: var(--dark-color);
    font-size: 55px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
}

.feature-list {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    width: calc(50% - 15px);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 20px;
}

.slider-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.slider-actions .btn-primary {
    padding: 16px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 0px;
}

.slider-actions .btn-primary:hover {
    background-color: var(--dark-color);
}

.btn-video {
    color: var(--dark-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-video .play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 20px;
    transition: all 0.3s;
}

.btn-video:hover .play-icon {
    background: var(--primary-color);
    color: var(--white);
}

/* Owl Carousel Customizations */
.hero-slider .owl-nav {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: 10px;
}

.hero-slider .owl-nav button {
    width: 50px;
    height: 50px;
    background: var(--white) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    color: var(--dark-color) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.hero-slider .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 50px;
    right: 15%;
    display: flex;
    align-items: center;
    gap: 20px;
    counter-reset: slide-dots;
    z-index: 10;
}

.hero-slider .owl-dots .owl-dot {
    position: relative;
    counter-increment: slide-dots;
    display: flex;
    align-items: center;
    background: transparent !important;
}

.hero-slider .owl-dots .owl-dot span {
    display: none;
}

.hero-slider .owl-dots .owl-dot::before {
    content: "0" counter(slide-dots);
    font-size: 16px;
    font-weight: 700;
    color: #999;
    transition: all 0.3s;
}

.hero-slider .owl-dots .owl-dot.active::before {
    color: var(--dark-color);
    font-size: 18px;
}

.hero-slider .owl-dots .owl-dot.active::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-left: 20px;
}

/* Info Grid Section */
.info-grid {
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.grid-item {
    position: relative;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    overflow: hidden;
    transition: all 0.3s;
}

.grid-item.item-emergency {
    grid-column: span 2;
    background-color: var(--white);
    background-image: url('../img/bg/bg-02.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-blend-mode: lighten;
    background-color: rgba(255, 255, 255, 0.95);
}

.emergency-content {
    max-width: 80%;
}

.emergency-content p {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
    font-family: var(--font-main);
}

.emergency-content h3 {
    color: var(--dark-color);
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
}

.item-appointment {
    background-color: #1a36c5;
    color: var(--white);
}

.item-location {
    background-color: var(--dark-color);
    color: var(--white);
}

.item-doctors {
    background-color: var(--primary-color);
    color: var(--white);
}

.grid-item .icon-box {
    margin-bottom: auto;
    position: relative;
    z-index: 2;
}

.grid-item .icon-box i {
    font-size: 55px;
}

.grid-item h4 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: auto;
    position: relative;
    padding-bottom: 20px;
    z-index: 2;
}

.grid-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
}

.grid-item.item-img {
    padding: 0;
}

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

.grid-item.item-img:hover img {
    transform: scale(1.05);
}

/* Watermarks */
.item-appointment::before,
.item-location::before,
.item-doctors::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    font-size: 200px;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.item-appointment::before {
    content: '\f133';
}

.item-location::before {
    content: '\f3c5';
}

.item-doctors::before {
    content: '\f0f0';
}

/* Treatment Section Styles */
.pattern-dots-bg {
    background-image: url(../img/bg/bg-02.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.treatments-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.treatments-carousel .owl-dot span {
    width: 25px;
    height: 4px;
    background-color: #9ca3af; /* tailwind gray-400 */
    display: block;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.treatments-carousel .owl-dot.active span, 
.treatments-carousel .owl-dot:hover span {
    background-color: var(--primary-color);
    width: 35px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-list li {
        width: 100%;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .logo-area {
        padding: 0 20px;
    }
    .main-nav {
        margin-right: 20px;
    }
    .nav-list {
        gap: 20px;
    }
    .slider-content h1 {
        font-size: 45px;
    }
    .slider-content h4 {
        font-size: 35px;
    }
}

@media (max-width: 991px) {
    .header-container {
        height: 80px;
        padding: 0 20px;
        background-color: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .header.sticky .header-container {
        height: 80px;
    }
    
    .logo-area {
        background: transparent;
        width: auto;
        padding: 0;
        justify-content: flex-start;
        flex: 1;
    }
    
    .logo i {
        color: var(--primary-color);
    }
    
    .logo-text h1 {
        color: var(--dark-color);
    }
    
    .logo-text span {
        color: #777;
    }
    
    .nav-area {
        flex-grow: 0;
        padding: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .header-btn {
        display: none;
    }
    
    /* Mobile Navigation Drawer (Opens from left) */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        z-index: 1001;
        margin: 0;
        padding: 80px 30px 40px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.05);
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        overflow-y: auto;
    }
    
    .main-nav.open {
        left: 0;
    }
    
    .close-menu {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-list > li > a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
    
    .has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
        display: none; 
        border-top: none;
        padding-left: 15px;
        background: transparent;
    }
    
    .dropdown.show {
        display: block;
    }
    
    .dropdown li a {
        padding: 10px 0;
        border-bottom: none;
        font-size: 15px;
    }
    
    .dropdown li a:hover {
        padding-left: 10px;
        background: transparent;
    }
    
    /* Overlay for menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-slider {
        margin-top: 80px;
    }

    .slider-item {
        height: auto;
        padding: 120px 0;
        min-height: 0;
    }
    
    .hero-slider::before {
        display: none;
    }
    
    .slider-overlay {
        background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    }
    
    .grid-item {
        height: 320px;
        padding: 30px;
    }
    
    .emergency-content h3 {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .slider-content h4 {
        font-size: 28px;
    }
    
    .slider-content h1 {
        font-size: 36px;
    }
    
    .feature-list li {
        font-size: 15px;
    }
    
    .slider-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .btn-video {
        margin-top: 10px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .grid-item.item-emergency {
        grid-column: span 1;
    }
}

/* Topbar Layout Adjustments */
@media (min-width: 1024px) {
    .header {
        top: 40px;
    }
    .header.sticky {
        top: 0;
    }
    .hero-slider {
        margin-top: 80px;
    }
}

@media only screen and (max-width: 768px) {
    .logo-area img {
    max-width: 45% !important;
    height: auto;
    object-fit: contain;
    padding-left: 0px !important;
}

.slider-content h2 {
    font-size: 35px !important;
}

.slider-overlay {
    background: linear-gradient(to right, rgb(255 255 255 / 73%) 0%, rgb(255 255 255 / 20%) 100%);
}

.treatments-carousel .owl-dots { 
    gap: 1px !important;
    margin-top: 18px !important;
}

.treatments-carousel .owl-dot span {
    width: 14px;
    height: 3px;
}

}