/* Academy Page Styles */

/* Hero Section */
.academy-page .hero-section {
    position: relative;
    background: url("../images/academy/MicrosoftTeams-image-99.fdacbca96a84.png") center center/cover;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.academy-page .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 47, 108, 0.92) 0%, rgba(0, 47, 108, 0.85) 100%);
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.academy-page .hero-content {
    text-align: left;
    color: white;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.academy-page .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.academy-page .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Four Pillars Section */
.pillars-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.pillar-item {
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.pillar-item:hover {
    transform: translateY(-5px);
    background: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
    color: #002f6c;
    font-size: 2.5rem;
}

.pillar-item h5 {
    font-weight: 600;
    color: #002f6c;
    margin-bottom: 0.5rem;
}

.pillar-item p {
    color: #666;
    line-height: 1.4;
}

/* Learn Section */
.learn-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.category-card {
    background: white;
    padding: 25px 15px;
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #0696d6;
}

.category-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    color: #002f6c;
}

.category-icon i {
    font-size: 2.5rem;
    color: #002f6c;
}

.category-card h6 {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

a:hover .category-card h6 {
    color: #0696d6;
}

/* How to Learn Section */
.how-learn-section {
    padding: 80px 0;
    background: white;
}

.learn-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.learn-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.learn-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.learn-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.learn-card-body {
    padding: 25px;
}

.learn-card-body h4 {
    color: #002f6c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.learn-card-body p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Training Courses Section */
.training-courses-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
}

.training-slider-wrapper {
    position: relative;
    padding: 0 50px;
    margin: 0 auto;
    max-width: 1400px;
}

/* Training Slider Container */
.training-slider {
    position: relative;
}

/* Ensure consistent height for slider items */
.tns-item {
    height: 100%;
}

.tns-item > div {
    height: 100%;
}

/* Remove margin from individual cards in slider */
.training-slider .academy-training-card {
    margin: 0;
}

/* Academy Training Card Styles - Matching CMS */
.academy-training-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 10px;
    border: 1px solid #f0f0f0;
}

.academy-training-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    border-color: transparent;
}

.academy-training-card:hover .academy-thumbnail {
    transform: scale(1.05);
}

/* Card Header */
.academy-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f3f5;
}

.academy-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 350ms ease-in-out;
}

.academy-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #002f6c 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Badge Overlay */
.academy-badge-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.academy-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.academy-badge-online {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.academy-badge-in-house {
    background: linear-gradient(135deg, #17a2b8 0%, #20c9c9 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.academy-badge-in-person {
    background: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
}

/* Card Body */
.academy-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.academy-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
    line-height: 1.4;
    min-height: 2.5em;
}

a:hover .academy-card-title {
    color: #0696d6;
}

.academy-category {
    margin-bottom: 0.5rem;
    font-size: 0.813rem;
    color: #6c757d;
    font-weight: 500;
}

/* Meta Section */
.academy-meta-wrapper {
    margin-top: auto;
}

.academy-date-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.academy-date-badge {
    font-size: 0.75rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.academy-date-badge i {
    color: #6c757d;
}

.academy-flags {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.academy-flags img {
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.academy-flags .global-icon {
    background: #0696d6;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 18px;
    border-radius: 2px;
    font-size: 0.75rem;
}

/* Tiny Slider Controls */
.tns-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 90px);
    left: -45px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.tns-controls button {
    pointer-events: all;
    background: white;
    border: 2px solid #0696d6;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0696d6;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.tns-controls button:hover {
    background: #0696d6;
    color: white;
    border-color: #0696d6;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 150, 214, 0.3);
}

.tns-controls button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #dee2e6;
    color: #adb5bd;
}

.tns-controls button[data-controls="prev"] {
    font-size: 0;
}

.tns-controls button[data-controls="prev"]::before {
    content: "‹";
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

.tns-controls button[data-controls="next"] {
    font-size: 0;
}

.tns-controls button[data-controls="next"]::before {
    content: "›";
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

.tns-nav {
    text-align: center;
    margin-top: 1.5rem;
}

.tns-nav button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
    padding: 0;
    cursor: pointer;
}

.tns-nav button:hover {
    background: #adb5bd;
    transform: scale(1.2);
}

.tns-nav button.tns-nav-active {
    background: #0696d6;
    width: 30px;
    border-radius: 5px;
    transform: scale(1);
}

/* Custom Section */
.custom-section {
    padding: 80px 0;
    background: white;
}

.custom-card {
    background: linear-gradient(135deg, #002f6c 0%, #0056b3 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 47, 108, 0.2);
    overflow: hidden;
    position: relative;
}

.custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../images/academy/MicrosoftTeams-image-99.fdacbca96a84.png") center/cover;
    opacity: 0.1;
    z-index: 0;
}

.custom-card > * {
    position: relative;
    z-index: 1;
}

.custom-card h3 {
    color: white;
    font-weight: 600;
    font-size: 1.8rem;
}

.custom-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.custom-card .btn-primary {
    background: white;
    color: #002f6c;
    border: none;
    padding: 10px 30px;
    font-weight: 500;
}

.custom-card .btn-primary:hover {
    background: #f8f9fa;
}

/* Download Section */
.download-section {
    background: #f8f9fa;
    padding: 80px 0;
    border-top: 1px solid #e9ecef;
}

.download-section h2 {
    color: #002f6c;
    font-weight: 600;
}

.download-section h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 400;
}

.download-section .btn-outline-primary {
    color: #002f6c;
    border-color: #002f6c;
    padding: 12px 40px;
    font-weight: 500;
}

.download-section .btn-outline-primary:hover {
    background: #002f6c;
    color: white;
}

/* HubSpot Form Styles */
#catalogue-hubspot-form .hs-form-field {
    margin-bottom: 1.5rem;
}

#catalogue-hubspot-form label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

#catalogue-hubspot-form input[type="text"],
#catalogue-hubspot-form input[type="email"],
#catalogue-hubspot-form input[type="tel"],
#catalogue-hubspot-form select,
#catalogue-hubspot-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#catalogue-hubspot-form input[type="text"]:focus,
#catalogue-hubspot-form input[type="email"]:focus,
#catalogue-hubspot-form input[type="tel"]:focus,
#catalogue-hubspot-form select:focus,
#catalogue-hubspot-form textarea:focus {
    border-color: #0696d6;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(6, 150, 214, 0.25);
}

#catalogue-hubspot-form textarea {
    resize: vertical;
}

#catalogue-hubspot-form input[type="submit"],
#catalogue-hubspot-form .hs-button {
    background-color: #f37321;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(243, 115, 33, 0.3);
}

#catalogue-hubspot-form input[type="submit"]:hover,
#catalogue-hubspot-form .hs-button:hover {
    background-color: #da5a0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 115, 33, 0.4);
}

#catalogue-hubspot-form .hs-error-msgs label {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#catalogue-hubspot-form .hs-form-required {
    color: #dc3545;
}

/* Button Styles */
.btn-primary {
    background: #0696d6;
    border-color: #0696d6;
    color: white;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(6, 150, 214, 0.3);
}

.btn-primary:hover {
    background: #0577ab;
    border-color: #0577ab;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 150, 214, 0.4);
}

.btn-outline-primary {
    color: #0696d6;
    border: 2px solid #0696d6;
    background: transparent;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #0696d6;
    border-color: #0696d6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 150, 214, 0.3);
}

.btn-lg {
    padding: 14px 40px;
    font-size: 1.1rem;
}
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #333;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Responsive Design */
@media (min-width: 658px) and (max-width: 767px) {
    .training-slider-wrapper {
        padding: 0 60px;
    }

    .academy-training-card {
        margin: 0 8px;
    }

    .academy-card-title {
        font-size: 1rem;
    }

    .academy-category {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .training-slider-wrapper {
        padding: 0 60px;
    }

    .academy-training-card {
        margin: 0 10px;
    }
}

@media (max-width: 992px) {
    .academy-page .hero-title {
        font-size: 2.5rem;
    }

    .academy-page .hero-subtitle {
        font-size: 1.2rem;
    }

    .custom-card {
        text-align: center;
    }

    .custom-card .row {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .academy-page .hero-title {
        font-size: 2rem;
    }

    .academy-page .hero-subtitle {
        font-size: 1rem;
    }

    .training-slider-container {
        padding: 0 20px;
    }

    .category-card {
        margin-bottom: 15px;
    }

    .learn-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .academy-page .hero-section {
        min-height: 250px;
    }

    .academy-page .hero-overlay {
        min-height: 250px;
    }

    .academy-page .hero-content {
        padding: 30px 20px;
    }

    .tns-controls {
        display: none;
    }

    .category-card h6 {
        font-size: 0.75rem;
    }
}
