/* Custom CSS for Health Safety Courses */

/* Brochure Modal Styles */
.brochure-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: opacity 0.3s ease;
}

.brochure-modal.hidden {
    display: none;
}

.brochure-modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 450px;
    padding: 24px;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.brochure-modal-content.active {
    transform: scale(1);
    opacity: 1;
}

.brochure-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.brochure-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brochure-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.brochure-course-title {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
}

.brochure-close-button {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.brochure-close-button:hover {
    color: #718096;
}

.brochure-form {
    margin-bottom: 20px;
}

.brochure-form-group {
    margin-bottom: 20px;
}

.brochure-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.brochure-input-wrapper {
    position: relative;
}

.brochure-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.brochure-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.brochure-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.brochure-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.brochure-checkbox {
    margin-right: 12px;
    margin-top: 3px;
}

.brochure-checkbox-label {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.4;
}

.brochure-submit-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #3182ce;
    color: white;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 6px;
    border: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
}

.brochure-submit-button:hover {
    background-color: #2c5282;
}

.brochure-submit-icon {
    margin-right: 8px;
}

.brochure-privacy-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.75rem;
    color: #718096;
}

/* Footer Styles */
.search-term,
.popular-searches p .search-term {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s ease;
    text-decoration: none;
}

.search-term:hover,
.popular-searches p .search-term:hover {
    color: white !important;
    text-decoration: underline;
}

.popular-searches p {
    line-height: 1.8;
}

/* Logo Overlap Box - Direct targeting */
.logo-overlap-box {
    position: relative;
    background: white;
    padding: 15px 15px 40px 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    border-radius: 0 0 12px 12px !important;
    margin-bottom: -40px !important;
    z-index: 9999 !important;
}

header {
    background: transparent !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    position: relative !important;
    z-index: 2000 !important;
}

section.bg-gray-900.relative {
    position: relative !important;
    z-index: 1 !important;
}

/* Header Styles */
.site-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Header */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

@media (min-width: 768px) {
    .mobile-header {
        display: none;
    }
}

/* Desktop Header */
.desktop-header {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .desktop-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* Logo */
.header-logo {
    display: block;
    height: 60px;
}

.header-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .header-logo {
        height: 80px;
    }
}

/* Search Bar */
.header-search {
    flex-grow: 1;
    margin: 0 2rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: #1e293b;
}

/* Login Button */
.login-button {
    padding: 0.5rem 1.5rem;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: #eff6ff;
}

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e293b;
    cursor: pointer;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: white;
    z-index: 50;
}

@media (min-width: 768px) {
    .popup-overlay {
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.popup-container {
    background: white;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .popup-container {
        width: 90%;
        max-width: 600px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.popup-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

.popup-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popup-search .search-container {
    margin-bottom: 1rem;
}

.popup-login {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    color: #1e293b;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.popup-login:hover {
    background-color: #eff6ff;
}

.popup-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-nav a {
    color: #1e293b;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.popup-nav a:hover {
    color: #3b82f6;
}

.hidden {
    display: none;
}


/* Footer Styles */
.footer-container {
    background-color: #324a80;
    padding: 50px 0 30px;
    color: white;
    font-family: Arial, sans-serif;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Popular Searches */
.popular-searches {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.popular-searches h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.popular-searches p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Newsletter Form */
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 14px;
    border-radius: 4px;
    background-color: white;
    border: none;
    color: #333;
    font-size: 13px;
    margin-bottom: 10px;
}

.newsletter-form button {
    width: 100%;
    padding: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.social-links a:hover {
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.footer-bottom-content > div:last-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
