/* src/main/resources/static/css/style.css */

/* Custom styles if needed, though Tailwind is preferred */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8; /* Light background */
    color: #333;
     font-family: 'Inter', sans-serif;
}
/* Ensure content is centered and has max width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Adjusted padding for better edge spacing */
}
/* Basic button styling */

/* Reusable Button Styles */
.btn-primary {
    @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-bold hover:bg-blue-700 transition duration-300 transform hover:scale-105;
}
.btn-primary-lg {
    @apply bg-blue-600 text-white px-8 py-4 rounded-xl font-bold text-xl hover:bg-blue-700 transition duration-300 transform hover:scale-105;
}

.btn-inverse-lg {
    @apply bg-white text-blue-800 px-8 py-4 rounded-xl font-bold text-xl hover:bg-gray-100 transition duration-300 transform hover:scale-105;
}

/* Card Image Containers for Learn/Tech Pages */
.card-image-container {
    @apply relative overflow-hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio for images/videos */
}

.card-image {
    @apply absolute top-0 left-0 w-full h-full object-cover;
}

/* Video Container for responsive embeds */
.video-container {
    @apply relative overflow-hidden w-full;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe,
.video-container video {
    @apply absolute top-0 left-0 w-full h-full;
}
.section-title {
    /* @apply text-3xl md:text-4xl font-extrabold text-gray-900 mb-6; */
}
.section-paragraph {
    /* @apply text-lg text-gray-700 leading-relaxed mb-4; */
}
.feature-item {
    /* @apply bg-blue-50 p-6 rounded-xl shadow-md flex items-start space-x-4; */
}
.feature-icon {
    /* @apply text-blue-600 text-4xl; */
}
.feature-text h3 {
    /* @apply text-xl font-semibold text-gray-800 mb-2; */
}
.feature-text p {
    /* @apply text-gray-600; */
}

/* Hero section specific styles */
.hero-section {
    /* Placeholder image for AI and security theme - text removed from image */
    /*background-image:url("/images/databreach.jpg"); /* Ensure this image is present in the static resources */
    background-size: fill; /* Cover the entire section 
    background-position:center;
    /*background-repeat: repeat;*/
    color: white;
    padding: 8rem 2rem; /* Increased padding for more vertical space */
    border-radius: 0.75rem; /* Rounded corners for the section */
    margin-bottom: 2rem; /* Space below the hero */
    display: flex; /* Use flexbox for centering content */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* Needed for overlay */
    overflow: hidden; /* Ensure overlay doesn't spill */
    height: 750px;  
    /*background-color: #1e40af;*/
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
    border-radius: 0.75rem; /* Match parent border-radius */
}
.hero-content {
    position: relative; /* Bring content above overlay */
    z-index: 2;
    text-align: center; /* Ensure text is centered */
    max-width: 800px; /* Constrain width for better readability */
}
/* Adjusted margins for better spacing within hero content */
.hero-content h1 {
    /* @apply text-5xl md:text-6xl font-extrabold mb-6 leading-tight; */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Text shadow for readability */
}
.hero-content p {
    /* @apply text-xl md:text-2xl mb-10; */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Original: 0.6, Changed to 0.3 for brighter video */
    opacity: 0.3; /* This is the key change for brightness */
    z-index: 10; /* Place between video and text */
}

/* New top title section styles */
.top-title-section {
     @apply bg-white text-center py-8 rounded-xl shadow-lg mb-8; 
}
.top-title-section h1 {
    /* @apply text-xl md:text-2xl font-extrabold text-blue-800; */
    font-size: 4.5rem; /* H4 equivalent: Tailwind's text-2xl is 1.5rem */
    color: #1e40af; /* Dark blue color: Tailwind's text-blue-800 is #1e40af */
    text-align: center; /* Ensure text is centered */
}

.card {
            background: #fff;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }

        /* Course Details Section */
        .course-details {
            flex: 1;
            min-width: 300px;
        }

        .course-details h3, .enrollment-form h3 {
            margin-top: 0;
            color: #005a78;
            border-bottom: 2px solid #e0e0e0;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        .course-details ul {
            list-style: none;
            padding: 0;
        }

        .course-details ul li {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        .course-details .icon {
            font-size: 1.5em;
            margin-right: 15px;
            color: #007b9a;
        }

        .video-container {
            width: 100%;
            height: 300px;
            margin-top: 20px;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #ddd;
        }

        /* Enrollment Form Section */
        .enrollment-form {
            flex: 1;
            min-width: 320px;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 8px;
            box-sizing: border-box;
            font-size: 1em;
        }

        /* Payment Options */
        .payment-options {
            border: none;
            padding: 0;
            margin: 30px 0;
        }

        .payment-options legend {
            font-size: 1.2em;
            font-weight: 600;
            margin-bottom: 15px;
            color: #333;
        }

        .payment-card {
            display: flex;
            align-items: center;
            padding: 20px;
            border: 2px solid #ddd;
            border-radius: 10px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .payment-card:hover {
            border-color: #007b9a;
            background-color: #f9feff;
        }

        .payment-card input[type="radio"] {
            margin-right: 20px;
            transform: scale(1.5);
        }

        .payment-card .payment-details {
            display: flex;
            flex-direction: column;
        }

        .payment-details strong {
            font-size: 1.1em;
            color: #005a78;
        }

        .payment-details span {
            color: #666;
        }

        .payment-details .price {
            font-size: 1.4em;
            font-weight: 700;
            color: #28a745;
            margin-top: 5px;
        }

        .submit-btn {
            width: 100%;
            padding: 15px;
            background-color: #28a745;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1.2em;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .submit-btn:hover {
            background-color: #218838;
        }

        .form-footer {
            font-size: 0.9em;
            color: #777;
            text-align: center;
            margin-top: 15px;
        }

        .course-code {
            background-color: #e9ecef;
            border: 1px dashed #adb5bd;
            padding: 15px;
            font-size: 1.5em;
            font-weight: bold;
            letter-spacing: 2px;
            margin: 20px auto;
            display: inline-block;
            border-radius: 5px;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .main-content {
                flex-direction: column;
            }
        }

        /* Tab Styles */
.tab-container {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 25px;
}

.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1.1em;
    font-weight: 600;
    color: #888;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Aligns with the container's bottom border */
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    color: #005a78;
    border-bottom-color: #007b9a;
}

.tab-content h3 {
    margin-top: 0;
}

/* Add these new rules to your style.css file */

.course-details .features-list {
    list-style: none;
    padding: 0;
}

.course-details .features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Styling for the new Platforms section */
.platforms-section {
    margin: 30px 0;
    text-align: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.platforms-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.platform-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Space between logos */
}

.platform-logos img {
    height: 45px; /* Control the size of the logos */
    max-width: 120px;
}

/* General styling for your languages.html button */
.submit-btn {
    display: inline-block; /* Important for <a> tag */
    width: 100%;
    padding: 15px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none; /* For <a> tag */
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

/* Green color for clickable state */
.submit-btn {
    background-color: #28a745; 
}

.submit-btn:hover {
    background-color: #218838;
}

/* Grey color and disabled style */
.submit-btn:disabled,
button[disabled] {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* Ensure the disabled hover state doesn't change */
.submit-btn:disabled:hover,
button[disabled]:hover {
    background-color: #cccccc;
}
