/* Hero Image */
.hackathon {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    line-height: 0;
}

.hackathon img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
    object-position: center;
}

/* Hackathon About Video/Text Section */
.hackathon-about-section {
    padding: 64px 0 42px;
    background: #f8fbff;
}

.hackathon-about-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px;
    background: #ffffff;
    border: none;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.hackathon-about-top-row {
    display: grid;
    grid-template-columns: 58% 42%;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.hackathon-about-video-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 24px;
    text-align: center;
    background: #f8fbff;
    border: 1px solid rgba(10, 103, 177, 0.12);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hackathon-video-box {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.hackathon-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
    object-fit: contain;
}

.hackathon-about-copy {
    background: #ffffff;
}

.hackathon-about-copy-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    border: 1px solid rgba(10, 103, 177, 0.12);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hackathon-about-copy-full {
    margin-top: 24px;
    padding: 34px 38px;
    border: 1px solid rgba(10, 103, 177, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hackathon-about-title {
    color: #0056B3;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 22px;
    text-transform: uppercase;
}

.hackathon-about-copy p {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.72;
    margin: 0 0 18px;
}

.hackathon-about-copy p:last-child {
    margin-bottom: 0;
}

/* Section Styling */
.hackathons-section {
    padding: 54px 0 80px;
    background: #ffffff;
}

/* Title & Subtitle */
.hackathons-title {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #3b86c4;
}

.hackathons-subtitle {
    font-size: 17px;
    font-weight: 500;
    color: #444;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 3px double #B3B3B4;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.05),
        0px 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

/* Hover Effect */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.1),
        0px 12px 25px rgba(0, 0, 0, 0.15);
    border-color: #003366;
}

/* Feature Card Image */
.feature-card-image-wrapper {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.feature-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Removed old icon styling from display usage, kept only if icons are used elsewhere */
.feature-card i {
    font-size: 30px;
    margin-bottom: 15px;
    color: #0056b3;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #126AB3;
}

.feature-card p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Call-to-Action */
.hackathons-closing {
    font-size: 20px;
    font-weight: 800;
    color: #131212;
    margin-top: 30px;
}

/* Register CTA */
.hackathon-register-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 12px;
}

.hackathon-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 12px 36px;
    border: 1px solid #4096D9;
    border-radius: 999px;
    background: #4096D9;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(64, 150, 217, 0.28);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease,
        box-shadow 0.3s ease;
}

.hackathon-register-btn:hover,
.hackathon-register-btn:focus {
    background: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 86, 179, 0.28);
    outline: none;
}

/* Coming Soon Modal */
.hackathon-coming-soon-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hackathon-coming-soon-modal.is-visible {
    display: flex;
}

.hackathon-coming-soon-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.hackathon-coming-soon-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 42px 32px 34px;
    background: #ffffff;
    border: 1px solid rgba(10, 103, 177, 0.16);
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    animation: hackathonModalIn 0.25s ease-out;
}

.hackathon-coming-soon-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.hackathon-coming-soon-close:hover,
.hackathon-coming-soon-close:focus {
    background: #e2e8f0;
    transform: rotate(90deg);
    outline: none;
}

.hackathon-coming-soon-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #eef7ff;
    color: #1f7ed0;
    font-size: 30px;
}

.hackathon-coming-soon-dialog h2 {
    color: #0056B3;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 24px;
}

.hackathon-coming-soon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 11px 28px;
    border: 1px solid #4096D9;
    border-radius: 999px;
    background: #4096D9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hackathon-coming-soon-btn:hover,
.hackathon-coming-soon-btn:focus {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    outline: none;
}

.hackathon-modal-open {
    overflow: hidden;
}

@keyframes hackathonModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Download Button */
.hackathons-section .btn-primary {
    background-color: #ffcc00;
    color: #003366;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

.hackathons-section .btn-primary:hover {
    background-color: #ffd633;
    color: #001f4d;
}

/* Form Container */
.hackathon-container {
    padding: 18px 16px 0;
}

.hackathon-form-container {
    max-width: 800px;
    width: 100%;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.hackathon-form-container h2 {
    padding: 10px;
    color: #0056B3;
    font-size: 25px;
    text-decoration: underline;
    text-align: center;
    text-transform: uppercase;
}

.hackathon-title {
    color: #0056B3;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.hackathon-field {
    margin-bottom: 15px;
    font-size: 16px;
}

.hackathon-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

.hackathon-input:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.hackathon-error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.hackathonrecaptcha-error-message {
    display: none;
    color: red;
    font-size: 14px;
    margin-top: 6px;
}

.hackathon-btn-primary {
    background-color: #4096D9;
    color: white;
    font-size: 16px;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s ease;
}

.hackathon-btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* reCAPTCHA Styling */
.recaptcha-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    margin: 22px 0 14px 0;
    padding-top: 18px;
    clear: both;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
}

.recaptcha-container .g-recaptcha {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 78px;
    max-width: 100%;
}

.recaptcha-container iframe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.recaptcha-container.has-error {
    padding: 12px;
    border: 1px solid #dc3545;
    border-radius: 6px;
    background-color: #fff8f8;
}

#hackathon_recaptcha_error {
    display: none;
    margin-top: 6px;
    color: red;
    font-size: 14px;
    text-align: center;
}

.hackathon-know-more-wrapper {
    text-align: center;
    margin: 10px 0 28px 0;
}

.hackathon-know-more-btn {
    display: inline-block;
    background-color: #4096D9;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 34px;
    border: 1px solid #4096D9;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hackathon-know-more-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Tablet Responsive Design */
@media (max-width: 991px) {
    .hackathon-about-section {
        padding: 58px 0 36px;
    }

    .hackathon-about-top-row {
        grid-template-columns: 1fr;
    }

    .hackathon-about-video-card {
        min-height: auto;
    }

    .hackathon-video-box {
        max-width: 620px;
    }

    .hackathon-about-copy-side {
        padding: 30px;
    }

    .hackathon-about-title {
        font-size: 26px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hackathons-section {
        padding: 42px 10px 56px;
    }

    .hackathon-about-section {
        padding: 48px 0 32px;
    }

    .hackathon-about-layout {
        padding: 18px;
        border-radius: 18px;
    }

    .hackathon-about-video-card {
        padding: 18px;
        border-radius: 16px;
    }

    .hackathon-video-box {
        border-radius: 14px;
    }

    .hackathon-about-copy-side {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .hackathon-about-copy-full {
        padding: 24px 20px 28px;
        border-radius: 16px;
    }

    .hackathon-about-title {
        font-size: 23px;
        margin-bottom: 16px;
    }

    .hackathon-about-copy p {
        font-size: 15px;
        line-height: 1.65;
    }

    .hackathons-title {
        font-size: 2rem;
    }

    .hackathons-subtitle {
        font-size: 1rem;
    }

    .feature-card {
        margin-bottom: 20px;
        padding: 20px;
    }

    .feature-card-image-wrapper {
        height: 200px;
    }

    .hackathon-row {
        padding: 15px;
    }

    .hackathon-input {
        font-size: 14px;
        padding: 8px;
    }

    .hackathon-btn-primary {
        font-size: 14px;
        padding: 8px 16px;
    }

    .recaptcha-container {
        text-align: left;
    }

    .recaptcha-container .g-recaptcha {
        transform: scale(0.88);
        transform-origin: left top;
        min-height: 78px;
    }

    .hackathon-know-more-btn,
    .hackathon-register-btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .hackathon-coming-soon-modal {
        padding: 18px;
    }

    .hackathon-coming-soon-dialog {
        max-width: 420px;
        padding: 38px 24px 30px;
        border-radius: 18px;
    }

    .hackathon-coming-soon-dialog h2 {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .hackathon-about-section {
        padding: 40px 0 28px;
    }

    .hackathon-about-layout {
        padding: 14px;
        border-radius: 16px;
    }

    .hackathon-about-video-card {
        padding: 14px;
    }

    .hackathon-about-copy-side {
        padding: 22px 16px;
    }

    .hackathon-about-copy-full {
        padding: 22px 16px 26px;
    }

    .hackathon-about-title {
        font-size: 21px;
    }

    .hackathon-about-copy p {
        font-size: 14px;
        line-height: 1.62;
    }

    .hackathon-form-container {
        padding: 24px 16px;
        border-radius: 10px;
    }

    .hackathon-form-container h2,
    .hackathon-title {
        font-size: 20px;
    }

    .hackathon-register-wrapper {
        margin-bottom: 4px;
    }

    .hackathon-coming-soon-dialog {
        padding: 36px 18px 28px;
    }

    .hackathon-coming-soon-icon {
        width: 56px;
        height: 56px;
        font-size: 27px;
    }

    .hackathon-coming-soon-dialog h2 {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.82);
        transform-origin: left top;
    }
}