/* Dermedic Case Study Styles */

/* Hero Section - Using standard case study hero styles */
.case-study-hero {
    position: relative;
    height: 80vh;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('../images/new-case/Dermedic/Banner.png') center/cover no-repeat;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-top: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.case-study-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 80vh;
}

.case-study-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.case-study-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.case-study-hero-text {
    text-align: center;
}

.case-study-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.case-study-hero-title {
    font-size: clamp(4rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


/* Full Width Image Slider Section */
.dermedic-image-section {
    padding: 80px 0;
    background: var(--dark-color);
    position: relative;
}

.dermedic-slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.dermedic-slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.dermedic-slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: none;
    flex-shrink: 0;
}

.dermedic-slider-slide.active {
    display: block;
}

.dermedic-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.dermedic-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    padding: 0 2rem;
}

.dermedic-slider-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    pointer-events: all;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.dermedic-slider-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.dermedic-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1536px) {
    .case-study-hero {
        height: 80vh;
        min-height: 75vh;
    }
    .case-study-hero-background {
        min-height: 75vh;
    }

    .case-study-hero-title {
        font-size: clamp(3.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 1280px) {
    .case-study-hero {
        height: 80vh;
        min-height: 70vh;
    }
    .case-study-hero-background {
        min-height: 70vh;
    }

    .case-study-hero-title {
        font-size: clamp(3rem, 8vw, 3rem);
    }
}

@media (max-width: 1024px) {
    .case-study-hero {
        height: 80vh;
        min-height: 65vh;
    }
    .case-study-hero-background {
        min-height: 65vh;
    }
    .dermedic-slider-container {
        max-width: 100%;
        margin: 0 1rem;
        height: 70vh;
    }

    .case-study-hero-title {
        font-size: clamp(2.5rem, 8vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .case-study-hero {
        height: 80vh;
        min-height: 55vh;
        padding: 0;
    }
    .case-study-hero-background {
        min-height: 55vh;
    }
    
    .dermedic-image-section {
        padding: 60px 0;
    }
    
    .dermedic-slider-container {
        margin: 0 0.5rem;
        height: 60vh;
    }
    
    .dermedic-slider-controls {
        padding: 0 1rem;
    }
    
    .dermedic-slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
}

@media (max-width: 640px) {
    .case-study-hero {
        height: 80vh;
        min-height: 50vh;
    }
    .case-study-hero-background {
        min-height: 50vh;
    }

    .case-study-hero-title {
        font-size: clamp(1.8rem, 8vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .case-study-hero {
        height: 80vh;
        min-height: 40vh;
        padding: 0;
    }
    .case-study-hero-background {
        min-height: 40vh;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
    
    .dermedic-image-section {
        padding: 40px 0;
    }
    
    .dermedic-slider-container {
        margin: 0 0.25rem;
        height: 50vh;
    }
    
    .dermedic-slider-controls {
        padding: 0 0.5rem;
    }
    
    .dermedic-slider-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .slider-slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
    }
}

@media (max-width: 360px) {
    .case-study-hero {
        height: 80vh;
        min-height: 35vh;
    }
    .case-study-hero-background {
        min-height: 35vh;
    }

    .case-study-hero-title {
        font-size: clamp(1.2rem, 8vw, 1.2rem);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .case-study-hero {
        height: 80vh;
        min-height: 90vh;
    }
    .case-study-hero-background {
        min-height: 90vh;
    }
}

/* Animation Enhancements */
.dermedic-hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.dermedic-hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.dermedic-hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.dermedic-hero-content > *:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation for Images */
.dermedic-slider-slide img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dermedic-slider-slide img[data-src].loaded {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #19365f 0%, #142a4a 50%, #fbc213 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 194, 19, 0.1) 0%, transparent 70%);
    animation: ctaGlow 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes ctaGlow {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-outline:hover {
    background: white;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.cta-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.cta-logo img {
    max-width: 300px;
    height: auto;
    opacity: 0.9;
    filter: brightness(1.1);
}

/* CTA Responsive Design */
@media (max-width: 768px) {
    .cta-section {
        padding: 6rem 0;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-logo {
        height: 200px;
    }
    
    .cta-logo img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 2rem 0;
    }
    

     .case-study-hero-text {
         text-align: center;
         padding: 1rem ;
     }
    .cta-content {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-outline {
        width: 100%;
        max-width: 250px;
    }
}

/* Footer Logo and Paragraph - Match Akbar */
.footer-brand .logo {
    height: 100px !important; /* Reduced from 150px */
    width: 140px !important; /* Reduced from 200px */
}

.footer-brand p {
    margin-bottom: 1rem !important; /* Reduced from 2rem */
}


/* ========================================
   FOOTER SIZE REDUCTION
   ======================================== */

/* Footer Logo Size Reduction */
.footer-brand .logo {
    height: 100px !important;
    width: 140px !important;
}

/* Footer Paragraph Spacing Reduction */
.footer-brand p {
    margin-bottom: 1rem !important;
}

/* ========================================
   CASE STUDY CONTENT SECTION - UNIVERSAL
   ======================================== */

/* Content Section */
.case-study-content-section {
    padding: 6rem 0;
    background: #19365f;
    color: #ffffff;
    position: relative;
    z-index: 1;
    min-height: 400px;
    overflow: visible;
}

.case-study-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Left Side - Services */
.case-study-services-side {
    text-align: left;
}

.case-study-services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-family: var(--font-bold);
}

.case-study-services-list {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Right Side - Project Description */
.case-study-project-side {
    text-align: left;
}

.case-study-project-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem 0;
    line-height: 1.3;
    font-family: var(--font-bold);
}

.case-study-project-description {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-study-content-section {
        padding: 4rem 0;
    }
    
    .case-study-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .case-study-project-title {
        font-size: 1.8rem;
    }
    
    .case-study-services-title {
        font-size: 1.3rem;
    }
    
    .case-study-services-list,
    .case-study-project-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .case-study-content-section {
        padding: 3rem 0;
    }
    
    .case-study-content-grid {
        gap: 2rem;
    }
    
    .case-study-project-title {
        font-size: 1.5rem;
    }
    
    .case-study-services-title {
        font-size: 1.2rem;
    }
    
    .case-study-services-list,
    .case-study-project-description {
        font-size: 0.95rem;
    }
}
