* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #EAEAEA;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: #2575FC;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF4C4C;
}

section {
    padding: 60px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- .principal Section (Header with AdmitJA Logo) --- */
.principal {
    background: linear-gradient(135deg, #2D5AE9, #1F3F9D);
    /* Darker blue gradient for header */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0;
    /* Adjusted padding for a more compact header */
    position: relative;
    overflow: hidden;
    display: flex;
    /* Use flexbox to center content vertically if needed */
    align-items: center;
    justify-content: center;
    min-height: 250px;
    /* Minimum height for the header */
}

/* Specific container for header if you want custom width/padding */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
    /* Ensures content is above any background effects */
}

.principal .tagline {
    font-size: 1.5rem;
    /* Larger, more prominent tagline */
    font-weight: 600;
    margin-top: 15px;
    /* Space below "AdmiteJA" */
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* AdmitJA Logo Styling */
.logo-admitir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Space between text and cap icon */
    margin-bottom: 5px;
    /* Space between logo and tagline */
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 4.8rem;
    /* Large font size for "AdmiteJA" */
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -2px;
    /* Slightly tighter letter spacing */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* More pronounced shadow */
    line-height: 1;
    /* Ensure tight line height */
    margin: 0;
    /* Reset margin from h1 default */
}

.graduation-cap-icon {
    font-size: 3.5rem;
    /* Size of the graduation cap icon */
    color: #2575FC;
    /* Gold color for the cap (you can choose blue #4285F4 or white #FFFFFF if preferred) */
    transform: rotate(-10deg);
    /* Slightly rotate the cap for a dynamic look */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- Buttons (If they were to be used in other sections) --- */
.cta-buttons {
    margin-top: 35px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    border: none;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: #FF4C4C;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #E63939;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: #6A11CB;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

/* --- #features Section --- */
#features {
    background-color: #EAEAEA;
    padding-top: 40px;
    /* Reduced top padding to bring features closer to header */
}

#features h2 {
    color: #0F0F2A;
    text-align: center;
    margin-bottom: 1.5em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: #FFFFFF;
    padding: 35px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #DDDDDD;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 90, 233, 0.15);
    border-color: #2575FC;
}

.feature-card:nth-child(3n+1) .icon-wrapper {
    background-color: #6A11CB;
}

.feature-card:nth-child(3n+2) .icon-wrapper {
    background-color: #2575FC;
}

.feature-card:nth-child(3n+0) .icon-wrapper,
.feature-card:nth-child(3n) .icon-wrapper {
    background-color: #FF4C4C;
}


.feature-card h3 {
    color: #0F0F2A;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: #4a4a5e;
    line-height: 1.5;
}

.icon-wrapper {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.icon-wrapper i {
    font-size: 2.8rem;
    color: #FFFFFF;
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, #2D5AE9, #1F3F9D);
    /* Match new header gradient */
    color: #EAEAEA;
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(234, 234, 234, 0.1);
}

footer p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: rgba(234, 234, 234, 0.85);
    line-height: 1.6;
}

footer p:last-child {
    margin-bottom: 0;
}

footer .footer-links {
    margin-top: 15px;
}

footer .footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #FF4c4c;
    text-decoration: none;
}

/* --- Responsive Design --- */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }

    .principal {
        padding: 60px 0;
    }

    .logo-text {
        font-size: 4rem;
    }

    .graduation-cap-icon {
        font-size: 3rem;
    }

    .principal .tagline {
        font-size: 1.3rem;
    }
}


/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    section {
        padding: 50px 0;
    }

    .principal {
        padding: 50px 0;
        min-height: 200px;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }

    .graduation-cap-icon {
        font-size: 2.5rem;
    }

    .principal .tagline {
        font-size: 1.1rem;
    }


    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-card {
        padding: 30px 25px;
    }

    .cta-buttons {
        /* Adjusted for general usage, not in header anymore */
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 90%;
        max-width: 300px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn i {
        margin-right: 6px;
    }

    .icon-wrapper {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
    }

    .icon-wrapper i {
        font-size: 2.4rem;
    }

    footer {
        padding: 30px 0;
    }
}

/* --- Estilos do Modal Melhorado --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    z-index: 1000;
    padding: 15px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.modal-content {
    background-color: #FFFFFF;
    color: #333;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #FF4C4C;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-google-icon-header {
    font-size: 2.5rem;
    color: #4285F4;
    margin-bottom: 10px;
    display: block;
}

.modal-header h2 {
    font-family: 'Poppins', sans-serif;
    color: #0F0F2A;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.modal-body {
    padding-top: 15px;
}

.modal-body p {
    font-size: 1rem;
    color: #4a4a5e;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.modal-icon {
    font-size: 3rem;
    color: #6A11CB;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.modal-body .benefits-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    text-align: left;
}

.modal-body .benefits-list li {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.modal-body .benefits-list li i.fa-check-circle,
.modal-body .benefits-list li i {
    color: #2575FC;
    margin-right: 10px;
    font-size: 1.1rem;
    min-width: 20px;
}

.privacy-note {
    font-size: 0.8rem !important;
    color: #777 !important;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 25px !important;
    padding-left: 0;
}

.modal-button-container {
    text-align: center;
    margin-top: 20px;
}

#google-signin-button-container-modal {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-google-official {
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-family: 'Roboto', 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 44px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.btn-google-official:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-google-official:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}

.google-icon {
    height: 18px;
    width: 18px;
    margin-right: 12px;
}

.google-text {
    white-space: nowrap;
}

/* Extra small devices (portrait phones, less than 576px) AND Modal Responsiveness*/
@media (max-width: 575.98px) {
    h1 {
        font-size: 1.9rem;
    }

    .principal {
        padding: 40px 0;
        min-height: 180px;
    }

    .logo-text {
        font-size: 3rem;
    }

    .graduation-cap-icon {
        font-size: 2.2rem;
    }

    .principal .tagline {
        font-size: 1rem;
    }

    section {
        padding: 30px 0;
    }

    #features h2 {
        font-size: 1.6rem;
    }

    /* CTA buttons (if used elsewhere) */
    .cta-buttons {
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .icon-wrapper {
        width: 55px;
        height: 55px;
    }

    .icon-wrapper i {
        font-size: 2rem;
    }

    footer {
        padding: 25px 0;
    }

    footer p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    footer .footer-links a {
        margin: 0 5px;
    }

    /* Modal Adjustments for very small screens */
    .modal-content {
        padding: 20px 15px;
        margin: 0 10px;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-google-icon-header {
        font-size: 1.8rem;
    }

    .modal-icon {
        font-size: 2.2rem;
    }

    .modal-body p {
        font-size: 0.85rem;
    }

    .modal-body .benefits-list li {
        font-size: 0.8rem;
    }

    .btn-google-official {
        width: 100%;
        padding: 10px 10px;
        font-size: 0.85rem;
    }

    .google-icon {
        height: 16px;
        width: 16px;
        margin-right: 8px;
    }
}