/* ================================
   Variables & Reset
   ================================ */

:root {
    /* Brand Colors */
    --primary-dark: #161F4C;
    --primary-blue: #10A2DC;
    --secondary-blue: #1C4482;
    --secondary-light-blue: #1C8ECE;
    --accent-blue: #4A79BC;
    --light-blue: #2e6abf20;

    /* UI Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --text-dark: #2d3748;
    
    /* Topic Colors */
    --fire-color: #de7a68;
    --safety-color: #3879a4;
    --environment-color: rgb(133, 210, 148);
    --health-color: #ffd072;
    --culture-color: #8ed4be;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ================================
   Container & Layout
   ================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   Navigation
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-dark);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Highlighted menu item (e.g., Contact) */
.nav-menu a.highlight {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(16, 162, 220, 0.3);
    transition: var(--transition-base);
}

.nav-menu a.highlight:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 162, 220, 0.4);
}

.nav-menu a.highlight::after {
    display: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.language-switcher button {
    padding: 4px;
    font-size: 1rem;
    color: var(--primary-dark);
    background: transparent;
    border: none;
    border-radius: 4px;
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.language-switcher button img {
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 2px;
}

.language-switcher button:hover {
    background: rgba(16, 162, 220, 0.1);
    transform: scale(1.1);
}

.language-switcher button.active {
    background: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(16, 162, 220, 0.3);
    border: 2px solid var(--primary-blue);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: transparent;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ================================
   Back to Top Button
   ================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: transparent;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.helmet-with-arrow {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.helmet-with-arrow i {
    position: absolute;
    color: var(--primary-blue);
    transition: var(--transition-base);
}

.helmet-with-arrow .fa-hard-hat {
    font-size: 2.5rem;
    z-index: 1;
}

.helmet-with-arrow .fa-chevron-up {
    font-size: 1.2rem;
    z-index: 2;
    color: #d0d0d0;
    /*text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);*/
    font-weight: bold;
}

.back-to-top:hover .helmet-with-arrow i {
    color: var(--primary-dark);
}

.back-to-top:hover .helmet-with-arrow .fa-chevron-up {
    color: #d0d0d0;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ================================
   Hero Section
   ================================ */

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 150px 0 120px;
    margin-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/stock/ehs-background01.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    padding: 0;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease 0.2s backwards;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-video {
    width: auto;
    height: auto;
    max-height: 555px;
    aspect-ratio: 505 / 897;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ================================
   Safety Box Section
   ================================ */

.safety-box-section {
    padding: var(--section-padding);
    background: var(--light-blue);
}

.box-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.box-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.box-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
}

.box-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.box-card h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.box-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    font-style: italic;
    font-weight: 500;
}

.checkmark-list {
    list-style: none;
}

.checkmark-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.checkmark-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ================================
   Programs Section
   ================================ */

.programs-section {
    padding: var(--section-padding);
    background: var(--white);
}

.program-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--light-blue);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 5rem;
}

.feature-header i {
    font-size: 2rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.feature-header h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.feature-tagline {
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.feature-content ul {
    list-style: none;
}

.feature-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.feature-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ================================
   Program Topics
   ================================ */

.program-topics {
    margin-top: 4rem;
}

.topics-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.topic-card {
    grid-column: span 2;
}

/* Center the last two cards in the second row */
.topic-card:nth-child(4) {
    grid-column: 2 / 4;
}

.topic-card:nth-child(5) {
    grid-column: 4 / 6;
}

.topic-card {
    position: relative;
    height: 450px;
    perspective: 1000px;
    cursor: pointer;
}

.topic-front,
.topic-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease;
    box-shadow: var(--shadow-lg);
}

.topic-front {
    background: var(--white);
    text-align: center;
}

.topic-back {
    background: var(--white);
    transform: rotateY(180deg);
}

.topic-card:hover .topic-front {
    transform: rotateY(-180deg);
}

.topic-card:hover .topic-back {
    transform: rotateY(0);
}

.topic-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.topic-icon.fire {
    background: linear-gradient(135deg, var(--fire-color), #e23b1f);
}

.topic-icon.safety {
    background: linear-gradient(135deg, var(--safety-color), #2370a4);
}

.topic-icon.environment {
    background: linear-gradient(135deg, var(--environment-color), #3e9642);
}

.topic-icon.health {
    background: linear-gradient(135deg, var(--health-color), #ffbb34);
}

.topic-icon.culture {
    background: linear-gradient(135deg, var(--culture-color), #76d7b8);
}

.topic-front h4 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.topic-front p {
    color: var(--medium-gray);
}

.topic-back h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.topic-back.fire h4 {
    color: var(--fire-color);
}

.topic-back.safety h4 {
    color: #f39c12;
}

.topic-back.environment h4 {
    color: var(--environment-color);
}

.topic-back.health h4 {
    color: var(--health-color);
}

.topic-back.culture h4 {
    color: var(--culture-color);
}

.topic-list {
    list-style: none;
    text-align: left;
    width: 100%;
    overflow-y: auto;
    max-height: 370px;
    padding-right: 0.5rem;
}

.topic-list li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.topic-list i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.topic-list.topic-list-two-columns {
    column-count: 2;
    column-gap: 1rem;
}

.topic-list.topic-list-two-columns li {
    break-inside: avoid;
    font-size: 0.85rem;
    padding: 0.35rem 0;
}

/* Custom scrollbar for topic list */
.topic-list::-webkit-scrollbar {
    width: 6px;
}

.topic-list::-webkit-scrollbar-track {
    background: var(--light-blue);
    border-radius: 10px;
}

.topic-list::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

/* ================================
   Catalog Section
   ================================ */

.catalog-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.catalog-section .container {
    max-width: 1400px;
}

.catalog-section .section-title {
    color: var(--white);
    text-align: center;
}

.catalog-section .section-title::after {
    background: var(--primary-blue);
}

.catalog-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Catalog Viewer Wrapper */
.catalog-viewer-wrapper {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-viewer {
    overflow: auto;
    background: var(--medium-gray);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    padding: 15px;
    min-height: 75vh;
    max-height: 88vh;
}

.catalog-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.catalog-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.catalog-loading p {
    font-size: 1.2rem;
}

#pdfCanvas {
    box-shadow: var(--shadow-xl);
    background: var(--white);
    display: none;
    margin: auto;
}

#pdfCanvas.loaded {
    display: block;
}

.catalog-controls {
    background: var(--light-gray);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #ddd;
}

.catalog-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.catalog-page-info {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.catalog-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.catalog-btn:hover:not(:disabled) {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.catalog-btn:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.catalog-zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-zoom-btn {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
}

.catalog-zoom-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.catalog-download-btn {
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    margin-left: 0.5rem;
}

.catalog-download-btn:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: scale(1.1);
}

#zoomLevel {
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 50px;
    text-align: center;
    font-size: 0.95rem;
}

/* Responsive Design for Catalog */
@media (max-width: 768px) {
    .catalog-viewer {
        min-height: 65vh;
        max-height: 75vh;
        padding: 10px;
    }
    
    .catalog-controls {
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
    }
    
    .catalog-navigation {
        gap: 0.5rem;
    }
    
    .catalog-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.82rem;
    }
    
    .catalog-zoom-controls {
        gap: 0.4rem;
    }
    
    .catalog-zoom-btn,
    .catalog-download-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}

/* Fullscreen mode optimizations */
.catalog-viewer-wrapper:fullscreen {
    max-width: 100%;
    border-radius: 0;
}

.catalog-viewer-wrapper:fullscreen .catalog-viewer {
    min-height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
}

/* ================================
   Why Pro-MEES Section
   ================================ */

.why-section {
    padding: var(--section-padding);
    background: var(--light-blue);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.why-card {
    grid-column: span 2;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

/* Center the last card in the third row */
.why-card:nth-child(7) {
    grid-column: 3 / 5;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

.why-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.why-card p {
    line-height: 1.8;
    color: var(--medium-gray);
}

.video-section {
    margin-top: 3rem;
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.video-section h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.video-section p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.video-wrapper {
    margin-top: 2rem;
}

/* ================================
   References Section
   ================================ */

.references-section {
    padding: var(--section-padding);
    background: var(--white);
    overflow: hidden;
}

.references-slider {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.reference-track {
    display: flex;
    gap: 2rem;
    animation: scrollPingPong 45s cubic-bezier(0.1, 0, 0, 0.3) infinite;
    padding: 4em 0 4em 0;
}

.reference-item {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.reference-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes scrollPingPong {
    0% {
        transform: translateX(10%);
    }
    50% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(10%);
    }
}

.references-slider:hover .reference-track {
    animation-play-state: paused;
}

/* ================================
   Contact Section
   ================================ */

.contact-section {
    padding: var(--section-padding);
    background: var(--light-blue);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-primary);
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary-blue);
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
}

/* ================================
   FAQ Section
   ================================ */

.faq-section {
    padding: var(--section-padding);
    background: var(--white);
}

.faq-categories {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-blue);
}

.faq-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.faq-item {
    background: var(--light-blue);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-base);
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-question i {
    font-size: 1rem;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.8;
    color: var(--medium-gray);
}

/* ================================
   Footer
   ================================ */

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-company {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: var(--primary-blue);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ================================
   Buttons
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn i {
    font-size: 1.6em;
    display: inline-flex;
    align-items: center;
}

/* ================================
   Animations
   ================================ */

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

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

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 1024px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
        justify-content: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu.active ~ .language-switcher {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
    }
    
    .language-switcher {
        order: 2;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .box-grid {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-card,
    .topic-card:nth-child(4),
    .topic-card:nth-child(5) {
        grid-column: auto;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-card,
    .why-card:nth-child(7) {
        grid-column: auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .topic-list.topic-list-two-columns {
        column-count: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .box-card,
    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* ================================
   CAPTCHA Styles
   ================================ */

.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.captcha-group label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.captcha-box {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

#captchaCanvas {
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    background: #f8f8f8;
    user-select: none;
    flex: 1;
    max-width: 200px;
    height: 60px;
}

.captcha-refresh {
    padding: 0.75rem 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-base);
    margin-top: 0;
}

.captcha-refresh:hover {
    background: var(--secondary-light-blue);
    transform: rotate(180deg);
}

.captcha-refresh:active {
    transform: rotate(180deg) scale(0.95);
}

#captcha {
    padding: 1rem !important;
    border: 2px solid var(--light-blue) !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

#captcha:focus {
    border-color: var(--primary-blue) !important;
}

#captcha::placeholder {
    letter-spacing: 0;
}

.captcha-error {
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2rem;
}

/* Form Status Messages */
.form-status {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}
