/* Homepage Specific Styles */
.hero-home {
    background: linear-gradient(135deg, #f8fafa 0%, #faf8f5 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/clinic.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, #fff 0%, #fff 40%, rgba(255,255,255,0.9) 60%, rgba(255,255,255,0.5) 80%, transparent 100%);
    z-index: 1;
}

.hero-bg-shape::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.05) 0%, rgba(140, 115, 102, 0.05) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #0D7377 0%, #8C7366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    color: #1a2e35;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #0D7377 0%, #8C7366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-dental {
    background: linear-gradient(135deg, #0D7377 0%, #14505C 100%);
}

.btn-aesthetic {
    background: linear-gradient(135deg, #8C7366 0%, #5C4742 100%) !important;
}

.hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1a2e35;
    text-decoration: none;
}

.hero-phone i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0D7377 0%, #8C7366 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hero-phone span {
    display: flex;
    flex-direction: column;
}

.hero-phone small {
    font-size: 13px;
    color: #888;
}

.hero-phone span:not(small) {
    font-weight: 600;
    font-size: 18px;
}

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

/* Division Selector */
.hero-division-selector {
    margin-bottom: 25px;
}

.selector-label {
    display: block;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.selector-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.selector-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.selector-opt.dental {
    background: rgba(13, 115, 119, 0.08);
    color: #0D7377;
    border-color: rgba(13, 115, 119, 0.3);
}

.selector-opt.dental:hover {
    background: #0D7377;
    color: #fff;
    border-color: #0D7377;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 115, 119, 0.25);
}

.selector-opt.aesthetic {
    background: rgba(140, 115, 102, 0.08);
    color: #8C7366;
    border-color: rgba(140, 115, 102, 0.3);
}

.selector-opt.aesthetic:hover {
    background: #8C7366;
    color: #fff;
    border-color: #8C7366;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(140, 115, 102, 0.25);
}

/* Division Cards */
.division-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.division-card:hover {
    transform: translateY(-10px);
}

.division-card.dental:hover {
    border-color: #0D7377;
}

.division-card.aesthetic:hover {
    border-color: #8C7366;
}

.division-card .division-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
    color: #fff;
}

.division-card.dental .division-icon {
    background: linear-gradient(135deg, #0D7377 0%, #14505C 100%);
}

.division-card.aesthetic .division-icon {
    background: linear-gradient(135deg, #8C7366 0%, #5C4742 100%);
}

.division-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1a2e35;
}

.division-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.division-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.division-highlights li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.division-card.dental .division-highlights li i {
    color: #0D7377;
}

.division-card.aesthetic .division-highlights li i {
    color: #8C7366;
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.btn-view {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D7377;
    font-size: 20px;
    transition: all 0.3s ease;
}

.service-card.aesthetic .btn-view {
    color: #8C7366;
}

.btn-view:hover {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.service-card.dental .service-category {
    color: #0D7377;
}

.service-card.aesthetic .service-category {
    color: #8C7366;
}

.service-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-content h4 a {
    color: #1a2e35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card.dental .service-content h4 a:hover {
    color: #0D7377;
}

.service-card.aesthetic .service-content h4 a:hover {
    color: #8C7366;
}

.service-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Color Classes */
.dental-color {
    color: #0D7377 !important;
}

.aesthetic-color {
    color: #8C7366 !important;
}

/* About Features */
.about-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.feature-icon.dental {
    background: linear-gradient(135deg, #0D7377 0%, #14505C 100%);
}

.feature-icon.aesthetic {
    background: linear-gradient(135deg, #8C7366 0%, #5C4742 100%);
}

.feature-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a2e35;
}

.feature-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #0D7377 0%, #8C7366 100%);
    color: #fff;
    padding: 25px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    z-index: 2;
    backdrop-filter: blur(5px);
}

.experience-badge .years {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    animation: panLeftRight 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes panLeftRight {
    0%, 10% { object-position: 0% center; }
    45%, 55% { object-position: 100% center; }
    90%, 100% { object-position: 0% center; }
}

.about-image:hover img {
    animation-play-state: paused;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.1) 0%, rgba(140, 115, 102, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #0D7377 0%, #8C7366 100%);
    border-radius: 23px;
    z-index: -1;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #0D7377 0%, #8C7366 100%);
    padding: 60px 0;
}

.stats-wrapper {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Why Choose Section */
.why-features {
    margin-top: 20px;
}

.why-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.why-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0D7377 0%, #8C7366 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.why-content h5 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a2e35;
}

.why-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Instagram Feed Section */
.instagram-feed-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: 100%;
}

.instagram-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.instagram-header i {
    font-size: 40px;
}

.instagram-feed-box.dental .instagram-header i {
    color: #0D7377;
}

.instagram-feed-box.aesthetic .instagram-header i {
    color: #8C7366;
}

.instagram-info h4 {
    font-size: 18px;
    margin: 0;
    color: #1a2e35;
}

.instagram-info span {
    font-size: 13px;
    color: #888;
}

.instagram-grid {
    margin-bottom: 20px;
}

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

.instagram-placeholder .placeholder-item {
    aspect-ratio: 1;
    border-radius: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.instagram-feed-box.dental .placeholder-item {
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.1) 0%, rgba(13, 115, 119, 0.2) 100%);
}

.instagram-feed-box.aesthetic .placeholder-item {
    background: linear-gradient(135deg, rgba(140, 115, 102, 0.1) 0%, rgba(140, 115, 102, 0.2) 100%);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.instagram-follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.instagram-feed-box.dental .instagram-follow {
    background: linear-gradient(135deg, #0D7377 0%, #14505C 100%);
}

.instagram-feed-box.aesthetic .instagram-follow {
    background: linear-gradient(135deg, #8C7366 0%, #5C4742 100%);
}

.instagram-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: #fff;
}

.instagram-feed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.instagram-book-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0D7377;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.instagram-book-cta:hover {
    color: #0D7377;
    border-bottom-color: #0D7377;
}

.instagram-book-cta.aesthetic-cta {
    color: #8C7366;
}

.instagram-book-cta.aesthetic-cta:hover {
    color: #8C7366;
    border-bottom-color: #8C7366;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0D7377 0%, #8C7366 100%);
}

.cta-wrapper {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 50px;
}

.cta-wrapper h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 10px;
}

.cta-wrapper p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin: 0;
}

.btn-white {
    background: #fff !important;
    color: #0D7377 !important;
}

.btn-white:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px);
}

/* Doctor Cards Equal Height */
.doctors-row {
    display: flex;
    flex-wrap: wrap;
}

.doctors-row > [class*="col-"] {
    display: flex;
}

.doctor-card.h-100 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doctor-card.h-100 .doctor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-card.h-100 .doctor-content p {
    flex: 1;
}

.doctor-card.h-100 .doctor-content .read-more {
    margin-top: auto;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    bottom: calc(25px + env(safe-area-inset-bottom, 0px));
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1080;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float i {
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 38px; }
    .hero-image { margin-top: 40px; }
    .division-card { margin-bottom: 30px; }
    .stat-item { margin-bottom: 30px; }
    .cta-wrapper { text-align: center; }
    .cta-wrapper .text-lg-end { margin-top: 20px; }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 54px;
        height: 54px;
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 { font-size: 32px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-default { width: 100%; justify-content: center; }
    .section-title { font-size: 28px; }
    .cta-wrapper h2 { font-size: 28px; }
    .instagram-feed-box { margin-bottom: 30px; }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}
