/* About Page Specific Styles */
/* Author: Melitalia Academy Development Team */
/* Version: 1.0.0 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-green: #2e8b57;
    --primary-red: #dc3545;
    --primary-orange: #f59e0b;
    --secondary-green: #22c55e;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f8fafc;
    --bg-gradient: #f0fdf4;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Override Bootstrap primary colors with custom green */
    --bs-primary: #2e8b57;
    --bs-primary-rgb: 46, 139, 87;
}

/* ===== BOOTSTRAP PRIMARY COLOR OVERRIDES ===== */
.text-primary {
    color: var(--primary-green) !important;
}

.bg-primary {
    background-color: var(--primary-green) !important;
}

.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.border-primary {
    border-color: var(--primary-green) !important;
}

.badge.bg-primary {
    background-color: var(--primary-green) !important;
}

.nav-link.text-primary {
    color: var(--primary-green) !important;
}

/* ===== HERO SECTION ===== */
.courses-hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.courses-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="5" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="10" r="0.3" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="15" r="0.4" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="3" r="0.6" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="8" r="0.2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="12" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="18" r="0.3" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="6" r="0.4" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="14" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
}

.breadcrumb-nav {
    background: rgba(254, 255, 253, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-nav a {
    color: rgba(17, 24, 39, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.breadcrumb-nav .mx-2 {
    color: #000;
}

.breadcrumb-nav a:hover {
    color: rgba(17, 24, 39, 0.9);
    font-weight: 600;
}

.breadcrumb-nav .current {
    color: rgba(17, 24, 39, 0.9);
    font-weight: 600;
}

/* ===== BUTTON STYLING ===== */
.btn-primary-custom {
    background: var(--primary-green);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

/* ===== HERO TEXT STYLING ===== */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== ANIMATIONS ===== */
.slide-in-left { 
    animation: slideInLeft 1s ease-out; 
}

.slide-in-right { 
    animation: slideInRight 1s ease-out; 
}

.slide-in-up { 
    animation: slideInUp 0.8s ease-out; 
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== STORY SECTION ===== */
.story-section {
    padding: 5rem 0;
    background: white;
}


.story-content .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
}



.story-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-red));
    border-radius: 2px;
}

.founder-highlight {
    background: var(--bg-gradient);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 1px solid var(--primary-green);
}

.founder-highlight:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.story-image-placeholder .image-card {
    background-size: contain;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    
    
}

.story-image-placeholder .image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
    flex-wrap: wrap;
}

.story-image-placeholder img {
    max-height: 500px;
    width: auto;
    object-fit: contain;
    position: relative;
}

@media (max-width: 767px) {
    .story-image-placeholder img {
        max-height: 250px; 
        position: relative;
    }
}

.placeholder-content {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
}

.languages-badge .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.philosophy-card {
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-red));
    transform: scaleX(0);
    transition: var(--transition);
}

.philosophy-card:hover::before {
    transform: scaleX(1);
}

.philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.philosophy-card .card-icon {
    opacity: 0.8;
    transition: var(--transition);
}

.philosophy-card:hover .card-icon {
    opacity: 1;
    transform: scale(1.1);
}

.philosophy-card h4 {
    color: var(--primary-green);
}

/* ===== TEAM SECTION ===== */
.team-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.team-card {
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    position: relative;
    border-radius: var(--border-radius);
    background: white;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.team-icon {
    transition: var(--transition);
}

.team-card:hover .team-icon {
    transform: scale(1.1) rotate(5deg);
}

.team-badges .badge {
    font-size: 0.8rem;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* ===== CERTIFICATION SECTION ===== */
.certification-section {
    padding: 5rem 0;
    background: white;
}

.certification-content .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

.certification-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-red));
    border-radius: 2px;
}

.feature-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    transition: var(--transition);
    border-radius: 8px;
}

.feature-item:hover {
    background: rgba(46, 139, 87, 0.05);
    padding-left: 1rem;
}

.certificate-mockup .certificate-placeholder {
    background: white;
    border: 3px solid #f1f5f9;
    transition: var(--transition);
    position: relative;
    border-radius: var(--border-radius);
}

.certificate-mockup .certificate-placeholder:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.certificate-seal {
    position: relative;
    display: inline-block;
}

.certificate-seal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.2;
}

/*==============================
===== FUTURE GOALS SECTION ===== 
================================*/
.future-goals-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.goal-card {
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
    border-radius: 0 0 0 60px;
    opacity: 0;
    transition: var(--transition);
}

.goal-card:hover::before {
    opacity: 0.1;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.goal-icon {
    transition: var(--transition);
}

.goal-card:hover {
    transform: scale(1.02);
    color: var(--primary-green) !important;
}

/* ====================
===== CTA SECTION =====
======================= */
.cta-section {
    padding: 5rem 0;
    background: var(--primary-green);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="4"/></g></svg>') repeat;
    opacity: 0.5;
}

.stat-badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    color: var(--primary-green);
}

.stat-badge:hover {
    transform: translateY(-2px);
}

.text-cta {
    color: var(--primary-green);
    font-weight: 400;
    font-size: 1.1rem;
}

.btn-light {
    background: white;
    color: var(--primary-green);
    border: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-light:hover {
    background: #f8f9fa;
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}


/*=========================== 
===== RESPONSIVE DESIGN =====
=============================*/

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large Screens (1200px to 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Medium-Large Screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .courses-hero-section {
        padding: 100px 0 60px;
    }
}

/* Medium Screens (768px to 991px) - Tablets */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .courses-hero-section {
        padding: 80px 0 50px;
    }
    
    .story-section,
    .philosophy-section,
    .team-section,
    .certification-section,
    .future-goals-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    /* Card spacing adjustments */
    .philosophy-card,
    .team-card,
    .goal-card {
        margin-bottom: 1.5rem;
        padding: 1.75rem;
    }
    
    /* Story section adjustments */
    .story-content {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .story-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Footer adjustments */
    .footer-widget {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small-Medium Screens (576px to 767px) - Large Mobile */
@media (max-width: 767px) and (min-width: 576px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.6;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .courses-hero-section {
        padding: 70px 0 40px;
    }
    
    /* Card improvements */
    .philosophy-card,
    .team-card,
    .goal-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    /* CTA section improvements */
    .cta-section {
        text-align: center;
    }
    
    .cta-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stat-badge {
        margin-bottom: 0.5rem;
        display: inline-block;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Certificate section */
    .certificate-placeholder {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Footer improvements */
    .footer-section .col-xl-2,
    .footer-section .col-lg-2,
    .footer-section .col-md-6 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Button improvements */
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        max-width: 280px;
    }
}

/* Small Screens (400px to 575px) - Standard Mobile */
@media (max-width: 575px) and (min-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.6;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .courses-hero-section {
        padding: 60px 0 30px;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Card improvements */
    .philosophy-card,
    .team-card,
    .goal-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    /* Text improvements */
    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Certificate section */
    .certificate-placeholder {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Footer improvements */
    .footer-section {
        padding: 30px 0 0;
    }
    
    .footer-widget {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Button improvements */
    .btn-lg {
        font-size: 0.85rem;
        padding: 0.7rem 1.25rem;
        width: 100%;
        max-width: 250px;
    }
    
    /* Badge improvements */
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
        margin: 0.2rem;
    }
}

/* Extra Small Screens (up to 399px) - Small Mobile */
@media (max-width: 399px) {
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        text-align: center;
        line-height: 1.6;
        padding: 0 0.75rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 1.25rem;
        line-height: 1.3;
    }
    
    .courses-hero-section {
        padding: 50px 0 25px;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Card improvements */
    .philosophy-card,
    .team-card,
    .goal-card {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Text improvements */
    .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Certificate section */
    .certificate-placeholder {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    /* Button improvements */
    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        width: 100%;
    }
    
    /* Badge improvements */
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        margin: 0.15rem;
    }
    
    /* Footer improvements */
    .footer-section {
        padding: 25px 0 0;
    }
    
    .footer-widget {
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    .footer-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* ===== MOBILE-FIRST ENHANCEMENTS ===== */

/* Touch-friendly interactions for mobile */
@media (max-width: 991px) {
    /* Larger touch targets for mobile */
    .btn,
    .social-link,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for touch */
    .philosophy-card,
    .team-card,
    .goal-card {
        margin-bottom: 1.5rem;
    }
    
    /* Improved text readability */
    .card-icon {
        font-size: 2.5rem !important;
    }
    
    /* Better button spacing */
    .btn + .btn {
        margin-left: 0.5rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .courses-hero-section {
        padding: 40px 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .story-section,
    .philosophy-section,
    .team-section,
    .certification-section,
    .future-goals-section,
    .cta-section {
        padding: 2rem 0;
    }
}

/* Improved image responsiveness */
@media (max-width: 991px) {
    .footer-logo-img {
        height: 40px;
        max-width: 150px;
    }
    
    .certificate-placeholder {
        text-align: center;
    }
    
    .certificate-placeholder i {
        font-size: 3rem !important;
    }
}

/* Better spacing for very small screens */
@media (max-width: 360px) {
    .philosophy-card,
    .team-card,
    .goal-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    .btn-lg {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .courses-hero-section {
        padding: 40px 0 20px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    .slide-in-up,
    .slide-in-left,
    .slide-in-right {
        animation: none;
    }
    
    * {
        transition: none !important;
    }
}

.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .philosophy-card,
    .team-card,
    .goal-card {
        border-width: 2px;
    }
    
    .text-muted {
        color: var(--text-dark) !important;
    }
}

@media print {
    .navbar,
    .cta-section,
    .footer-section {
        display: none;
    }
    
    .courses-hero-section {
        background: white;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .courses-hero-section .hero-title,
    .courses-hero-section .hero-subtitle {
        color: black;
    }
}
