@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;500;600&display=swap');

/* Body Background */
body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f0f8f0;
    margin: 0;
    padding: 0;
    padding-top: 64px;
}

/* Hero Section Styles */
.hero-section {
    background: #0a3970;
    color: #fff;
    padding: 76px 0 40px 0;
    text-align: center;
}
.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.hero-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Training Schedule Section */
.training-schedule-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.training-schedule-section h2 {
    font-family: 'Playfair Display', serif;
    color: #0a3970;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.schedule-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.filter-dropdowns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-dropdowns select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    min-width: 150px;
}

.reset-btn {
    background: #ffd600;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background: #e6c200;
}

/* Training Grid */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* Training Cards */
.training-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-header {
    margin-bottom: 16px;
}

.card-header h3 {
    font-family: 'Playfair Display', serif;
    color: #0a3970;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.training-type {
    background: #ffd600;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.card-details {
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
}

.detail-item .icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

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

.card-description p {
    color: #333;
    font-style: italic;
    font-size: 1rem;
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.book-btn {
    background: #ffd600;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    transition: background-color 0.3s;
}

.book-btn:hover {
    background: #e6c200;
}

.details-btn {
    background: #0a3970;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    transition: background-color 0.3s;
}

.details-btn:hover {
    background: #082a54;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    color: #0a3970;
    margin-bottom: 24px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd600;
    box-shadow: 0 0 0 2px rgba(255, 214, 0, 0.2);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.submit-btn {
    background: #ffd600;
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #e6c200;
}

.cancel-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.cancel-btn:hover {
    background: #5a6268;
}

/* Details Modal Styles */
.details-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px 0;
}

.session-details {
    background-color: #fff;
    margin: 20px auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #ffd600;
    padding-bottom: 15px;
}

.session-details h2 {
    color: #0a3970;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.header-close-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.header-close-btn:hover {
    background: #f8f9fa;
    color: #dc3545;
    transform: scale(1.1);
}

.detail-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ffd600;
}

.detail-section h3 {
    color: #0a3970;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.detail-section p {
    color: #4a6b4a;
    line-height: 1.6;
    margin-bottom: 10px;
}

.detail-section ul {
    color: #4a6b4a;
    line-height: 1.6;
    padding-left: 20px;
}

.detail-section li {
    margin-bottom: 8px;
}

.detail-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e3eafc;
}

.detail-actions .book-btn {
    background: linear-gradient(135deg, #ffd600, #ffea70);
    color: #0a3970;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-actions .book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.4);
}

.detail-actions .close-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-actions .close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.detail-actions .back-btn {
    background: linear-gradient(135deg, #0a3970, #063366);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-actions .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 57, 112, 0.4);
    background: linear-gradient(135deg, #063366, #0a3970);
}

.detail-actions .book-btn,
.detail-actions .close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .training-schedule-section h2 {
        font-size: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-dropdowns {
        justify-content: center;
    }
    
    .training-grid {
        grid-template-columns: 1fr;
    }
    
    .training-card {
        /* Disable transforms on mobile to prevent blurring */
        transform: none !important;
        transition: box-shadow 0.3s ease !important;
    }
    
    .training-card:hover {
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    /* Improve text rendering on mobile */
    .training-card h3,
    .training-card p,
    .card-details span,
    .training-type {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* Our Training Programs Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-section h2 {
    color: #133366;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.about-section .about-desc {
    color: #222;
    font-size: 1.2rem;
    text-align: center;
    font-style: italic;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Feature Card Professional Design for Training Programs */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    font-weight: 500;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #ffd600, #ffea70, #ffd600);
    z-index: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #ffd600;
}

.feature-card > * {
    position: relative;
    z-index: 2;
}

.feature-card h3, .feature-card p {
    color: #333;
    text-shadow: none;
}

/* Training Page Specific Professional Card Styling */
.about-section .service-bg {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border-left: 5px solid #2196f3 !important;
}

.about-section .ipa-bg {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important;
    border-left: 5px solid #9c27b0 !important;
}

.about-section .reach-bg {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%) !important;
    border-left: 5px solid #4caf50 !important;
}

/* Training Page Feature Card Text Positioning */
.about-section .feature-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 30px 25px !important;
    min-height: 280px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

.about-section .feature-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

.about-section .feature-card h3 {
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #133366 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.about-section .feature-card h3 span {
    font-size: 2rem !important;
    background: linear-gradient(135deg, #ffd600, #ffea70) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) !important;
}

.about-section .feature-card p {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
    text-shadow: none !important;
}

/* Card Icon Styling */
.feature-card .icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd600, #ffea70);
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.feature-card .icon-container span {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Success Modal Styles for Training Page */
.success-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(12px);
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 25px;
    padding: 45px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 4px solid #ffd600;
    position: relative;
    transform: scale(0.7) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: modalGlow 2s ease-in-out infinite alternate;
}

.success-modal.show .success-modal-content {
    transform: scale(1) translateY(0);
}

.success-icon {
    margin-bottom: 25px;
    color: #4caf50;
    animation: successPulse 2s ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.3));
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes modalGlow {
    0% { box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 214, 0, 0.3); }
    100% { box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 214, 0, 0.6); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.success-modal-content h2 {
    color: #063366;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #063366, #0a3970);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-details {
    background: linear-gradient(135deg, #f0f4f8, #e3eafc);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #ffd600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.success-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd600, #ffea70, #ffd600);
    animation: shimmer 2s ease-in-out infinite;
}

.detail-item {
    text-align: left;
    margin-bottom: 12px;
    color: #063366;
    font-size: 1rem;
    line-height: 1.5;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: #3a5d1c;
    font-weight: 600;
}

.success-message {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.contact-info {
    background: linear-gradient(135deg, #ffd600, #ffea70);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 3px solid #063366;
    box-shadow: 0 8px 25px rgba(255, 214, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-info::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

.contact-info p {
    margin: 5px 0;
    color: #063366;
    font-weight: 600;
}

.contact-info p:first-child {
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-info p:last-child {
    font-size: 0.95rem;
    color: #184a1c;
}

.success-ok-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.success-ok-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.success-ok-btn:hover {
    background: linear-gradient(135deg, #45a049, #4caf50);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.success-ok-btn:hover::before {
    left: 100%;
}

.success-ok-btn:active {
    transform: translateY(0);
}

/* Responsive Success Modal for Training */
@media (max-width: 768px) {
    .success-modal-content {
        padding: 35px 30px;
        max-width: 95%;
        border-radius: 20px;
    }
    
    .success-modal-content h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .success-details {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .detail-item {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .success-message {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    
    .contact-info {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .contact-info p:first-child {
        font-size: 1rem;
    }
    
    .contact-info p:last-child {
        font-size: 0.95rem;
    }
    
    .success-ok-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .success-modal-content {
        padding: 30px 25px;
        border-radius: 18px;
    }
    
    .success-modal-content h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .success-details {
        padding: 18px;
        margin-bottom: 25px;
    }
    
    .detail-item {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .success-message {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .contact-info {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .contact-info p:first-child {
        font-size: 0.95rem;
    }
    
    .contact-info p:last-child {
        font-size: 0.9rem;
    }
    
    .success-ok-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Details Modal Mobile Styles */
    .session-details {
        padding: 20px;
        margin: 10px auto;
        width: 95%;
    }
    
    .modal-header {
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .session-details h2 {
        font-size: 1.8rem;
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    .header-close-btn {
        align-self: flex-end;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .detail-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .detail-section h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .detail-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-actions .book-btn,
    .detail-actions .back-btn,
    .detail-actions .close-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Responsive Design for Training Programs */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-section h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .about-section .about-desc {
        font-size: 1.1rem;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .about-section .feature-card {
        min-height: 250px !important;
        padding: 25px 15px !important;
        /* Disable transforms on mobile to prevent blurring */
        transform: none !important;
        transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
    }
    
    .about-section .feature-card:hover {
        transform: none !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    }
    
    .about-section .feature-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
        /* Remove text shadows that cause blurring on mobile */
        text-shadow: none !important;
        letter-spacing: 0.3px !important;
        /* Improve text rendering */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    .about-section .feature-card p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        /* Remove text shadows that cause blurring on mobile */
        text-shadow: none !important;
        font-weight: 500 !important;
        letter-spacing: 0.2px !important;
        /* Improve text rendering */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* Mobile text clarity improvements */
@media (max-width: 768px) {
    /* Disable all transforms that can cause blurring */
    * {
        -webkit-transform: none !important;
        transform: none !important;
    }
    
    /* Re-enable only safe transforms */
    .training-card,
    .about-section .feature-card {
        -webkit-transform: none !important;
        transform: none !important;
    }
    
    /* Improve text rendering globally on mobile */
    body, h1, h2, h3, h4, h5, h6, p, span, div {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Remove text shadows that cause blurring */
    .training-card h3,
    .training-card p,
    .card-details span,
    .training-type,
    .about-section .feature-card h3,
    .about-section .feature-card p {
        text-shadow: none !important;
    }
    
    /* Ensure proper scaling */
    .training-card,
    .about-section .feature-card {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
}

/* Responsive font sizes for headings and text */
.hero-section h1, .training-schedule-section h2, .about-section h2 {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
}
.hero-section p, .form-description, .training-card p, .about-section p, .values-section p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}
.card-header h3, .about-section h3, .values-section h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

/* Responsive buttons */
.btn, .book-btn, .details-btn, .submit-btn, .reset-btn {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  min-height: 44px;
  padding: 14px 24px;
  border-radius: 10px;
}
@media (max-width: 700px) {
  .btn, .book-btn, .details-btn, .submit-btn, .reset-btn {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* Hero background improvements */
.hero-section {
  background-size: cover !important;
  background-position: center !important;
  min-height: 180px;
  text-align: center;
  padding: 32px 10px 18px 10px;
}
@media (max-width: 700px) {
  .hero-section {
    min-height: 120px;
    padding: 34px 4vw 14px 4vw;
  }
  .hero-section h1 {
    font-size: clamp(1.1rem, 7vw, 2rem);
  }
  .hero-section p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
  }
}

/* Section padding/margin for mobile */
@media (max-width: 700px) {
  .training-schedule-section, .about-section, .features, .training-grid {
    padding-left: 2vw;
    padding-right: 2vw;
  }
}

/* Prevent text overflow */
.hero-section, .training-schedule-section, .about-section, .features, .training-grid {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Ensure all section headings are centered on mobile */
@media (max-width: 700px) {
  h1, h2, h3, h4, h5, h6, .hero-section h1, .training-schedule-section h2, .about-section h2 {
    text-align: center;
  }
}

/* Ensure nav links and buttons are touch-friendly */
@media (max-width: 700px) {
  .nav-links a, .btn, .book-btn, .details-btn, .submit-btn, .reset-btn {
    min-height: 48px;
    font-size: clamp(1rem, 3vw, 1.15rem);
    padding: 14px 18px;
  }
}
