@import url('https://fonts.googleapis.com/css2?family=Anaheim:wght@400..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --main-color: #A0522D;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

main {
    flex: 1;
}

/* Navbar styles */
.navbar {
    background-color: var(--main-color);
    color: white;
    /*padding: 0.5rem 0;*/
    position: sticky;
    top: 0;
    z-index: 1000;

}


.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    background-image: none;
    text-decoration: none;
}

.nav-logo img {
    width: 60px;
    height: 60px;
}

.nav-logo span {
    font-size: 26px;
    font-weight: bold;
    margin-left: 10px;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;

}

.nav-link:hover {
    background-color: var(--main-color);
    filter: brightness(0.7);
}

.nav-id {
    margin-left: 20px;
    font-weight: bold;
    font-size: 18px;
    color: #ffffff;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.nav-moodle {
    display: flex;
    align-items: center;
    margin-left: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    line-height: 0;
    transition: background-color 0.2s;
}

.nav-moodle:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

.nav-moodle img {
    height: 30px;
    width: auto;
    max-width: 117px;
    display: block;
    object-fit: contain;
}

/* RESPONSIVO LOGO + TITULO: telas pequenas */
@media (max-width: 768px) {
    .nav-logo {
        justify-content: flex-start;
        left: 20%;
    }

    .nav-logo span {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: white;
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 0.375rem;
}

.dropbtn:hover {
    background-color: var(--main-color);
    filter: brightness(0.7);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--main-color);
    min-width: 200px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 0.375rem;
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-family: 'Poppins', sans-serif;
}

.dropdown-content a:hover {
    background-color: var(--main-color);
    filter: brightness(0.8);
    border-radius: 0.375rem;

}

.show {
    display: block;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.hero {
    --main-color: #A0522D;
    position: relative;
    padding: 3rem 2rem 10rem;
    overflow: hidden;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    clip-path: polygon(0% 0%,
            100% 0%,
            100% 95%,
            90% 100%,
            80% 95%,
            70% 100%,
            60% 95%,
            50% 100%,
            40% 95%,
            30% 100%,
            20% 95%,
            10% 100%,
            0% 95%);

}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 0;
    animation: slider 40s infinite linear;
    overflow: hidden;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.05));
}

@keyframes slider {
    0% {
        background-image: url('images/madeira.png');
    }

    25% {
        background-image: url('images/porto.png');
    }

    50% {
        background-image: url('images/photo43.jpg');
    }

    75% {
        background-image: url('images/flagsue.jpg');
    }

    100% {
        background-image: url('images/ueportugal.jpg');
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
    max-width: 720px;
    z-index: 2;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .nav-container {
        max-width: 100%;
        padding: 0 1.5rem;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
    }

    .nav-logo img {
        width: 50px;
        height: 50px;
    }

    .nav-logo span {
        font-size: 22px;
    }

    .nav-moodle img {
        height: 26px;
        max-width: 101px;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
        margin-right: 1rem;
    }
}


@media (min-width: 1900px) {
    .nav-container {
        max-width: 1920px;
        padding: 0 3rem;
    }

    .nav-logo {
        margin-left: 4rem;
    }

    .nav-logo img {
        width: 80px;
        /* logo maior */
        height: 80px;
    }

    .nav-logo span {
        font-size: 36px;
        /* fonte maior */
    }

    .nav-moodle img {
        height: 36px;
        max-width: 140px;
    }

    .nav-links {
        gap: 2rem;
        /* mais espaçamento entre os links */
    }

    .nav-link {
        padding: 0.75rem 1rem;
        /* links maiores */
        font-size: 1.2rem;
        /* texto um pouco maior */
    }

    .nav-id {
        font-size: 1.2rem;
    }

    .dropbtn {
        font-size: 1.2rem;
    }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-family: 'Merriweather', serif !important;
    line-height: 1.2;
    color: var(--main-color);
    text-shadow: 3px 3px 8px rgba(255, 255, 255, 0.9), -3px -3px 8px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
    animation: wave 1.5s infinite ease-in-out;

}

/* Wave keyframe */
@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero h1:hover {
    transform: translateY(-5px) scale(1.02);
    text-shadow: 4px 4px 10px rgba(255, 255, 255, 1), -4px -4px 10px rgba(255, 255, 255, 0.7);
}

.hero h2 {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-family: 'Playfair Display', serif !important;
    line-height: 1.2;
    margin-bottom: 1.7rem;
    color: var(--main-color);
    text-shadow: 2px 2px 7px rgba(255, 255, 255, 0.8), -2px -2px 7px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    font-family: 'Montserrat', serif !important;
    color: #ffffff;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    background-color: var(--main-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInScale 1s ease-out forwards;
    transform: scale(0.95);
    /* Start slightly smaller for scale effect */
}

/* Keyframes for the paragraph animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 0.9;
        transform: scale(1);
    }
}

.hero-button {
    display: block;
    margin: 1rem auto 1rem auto;
    width: auto;
    padding: 0.5rem 4rem !important;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--main-color);
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 100px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--main-color);

}

.hero-button:hover,
.hero-button:focus {
    background-color: var(--main-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(var(--main-color), 0.4);
    outline: none;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #102a43;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #f0f4f8;
}

/* Features section */
.features {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 4rem 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.features-section {
    margin: 2rem 0;
}

.feature-card {
    background-color: #FEEABD;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Sombra leve */
}

/* Ícone SVG */
.icon-circle.emoji {
    font-size: 24px;
    line-height: 1;
}

.icon-circle i,
.icon-circle svg {
    width: 1.35rem;
    height: 1.35rem;
    color: #fff;
    stroke: #fff;
}

.icon-circle.brown {
    background-color: #A0522D;
}

.icon-circle.blue {
    background-color: #1E6F9F;
}

.icon-circle.green {
    background-color: #3B6E44;
}

.feature-text h3 {
    color: #102a43;
    font-size: 2rem !important;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #334e68;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: justify;

}

.feature-text ul {
    padding-left: 1.2rem;
    margin: 1rem 0;
    list-style-type: disc;
    text-align: justify;

}

.feature-text li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #334e68;
}



/* Page content styles */
.page-content {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

/* Location grid styles */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.location-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-card:hover {
    transform: translateY(-4px);
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #102a43;
}

.location-card p {
    padding: 0 1.5rem 1.5rem;
    color: #486581;
}

/* Sidebar styles */
.with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.sidebar {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInSidebar 0.6s ease forwards;
    animation-delay: 0.3s;
    width: 250px;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

@keyframes slideInSidebar {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar h3 {
    color: #102a43;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d9e2ec;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    color: #486581;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background-color: #f0f4f8;
    color: #102a43;
}

.sidebar-link.active {
    --main-color: #A0522D;
    background-color: var(--main-color);
    color: white;
}

.main-content {
    flex: 1;
}


/* About page styles */
.about-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: clamp(1.5rem, 4vw, 4rem);
    /* Adjust these values as needed */
    color: #102a43;
    margin-bottom: 0.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    max-width: 50vw;
    height: auto;
    border-radius: 0.5rem;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.about-text h2 {
    color: #102a43;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 3vw, 2.5rem);
}

.about-text p {
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: #2e2e2e;
    font-size: clamp(1rem, 2vw, 1.5rem);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #f0f4f8;
    border-radius: 0.5rem;
}

.stat-card i {
    color: #102a43;
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    color: #102a43;
    margin-bottom: 0.25rem;
}

/* Courses page styles */
.courses-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.courses-header {
    text-align: center;
    margin-bottom: 3rem;
}

.courses-header h1 {
    font-size: 2.5rem;
    color: #102a43;
    margin-bottom: 0.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    color: #102a43;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.course-details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: #627d98;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-details i {
    width: 16px;
    height: 16px;
}

.course-button {
    display: inline-block;
    background-color: #102a43;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.course-button:hover {
    background-color: #243b53;
    animation: pulse 0.4s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Courses section styles */
.courses-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.courses-header {
    text-align: center;
    margin-bottom: 3rem;
}

.courses-header h1 {
    font-size: 2.5rem;
    color: #102a43;
    margin-bottom: 0.5rem;
}


/* Course card styles */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-4px);
}

.course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    color: #102a43;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.course-content p {
    color: #486581;
    margin-bottom: 1rem;
}

.course-details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: #627d98;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-details i {
    width: 16px;
    height: 16px;
}

.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.course-button {
    display: inline-block;
    background-color: #102a43;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
    flex: 1;
    text-align: center;
}

.course-button:hover {
    background-color: #243b53;
}

.pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
    flex: 1;
    justify-content: center;
}

.pdf-button:hover {
    background-color: #b91c1c;
}

.pdf-button i {
    width: 16px;
    height: 16px;
}



/* Registration form styles */
.register-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.register-header {
    text-align: center;
    margin-bottom: 3rem;
}

.register-header h1 {
    font-size: 2.5rem;
    color: #102a43;
    margin-bottom: 0.5rem;
}

.register-form {
    max-width: 600px;
    margin: 0 auto;
}


.submit-button {
    width: 100%;
    background-color: #102a43;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #243b53;
}

.footer {
    background-color: #af890d;
    padding: 1.5rem 2rem;
    color: white;
    box-sizing: border-box;
    /* makes padding included in width */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.iframe-container {
    position: relative;
    width: 100%;
    /* Google Forms embed has roughly a 4:6 aspect ratio (height:width = 1.5) */
    padding-top: 150%;
    /* (height / width) * 100% = 1.5 * 100% = 150% */
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.iframe-wrapper {
    width: 100vw;
    /* viewport width */
    max-width: 78vw;
    /* prevent any max-width limits */
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    justify-content: center;
    display: flex;
}

/* Add media query for mobile screens */
@media only screen and (max-width: 768px) {
    .iframe-wrapper {
        padding: 0 5px;
    }
}


/* Social media section */
.social-media {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-media a {
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #ffcc00;
}

.social-media i {
    width: 28px;
    height: 28px;
}

/* Find Us Button */
.find-us-btn {
    color: white;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    text-decoration: none;
    margin: auto;
}


/* Barra da Madeira*/
.barra-colorida {
    display: flex;
    height: 8px;
    /* Super fina */
    width: 100%;
    position: sticky;
    top: 60px;
    z-index: 999;
}

.barra-colorida div {
    flex: 1;
    height: 100%;
    position: sticky;

}

.vermelho {
    background-color: #b32324;
    position: sticky;
}

.amarelo {
    background-color: #f8d944;
    position: sticky;

}

.azul {
    background-color: #232d54;
    position: sticky;

}

.verde {
    background-color: #008166;
    position: sticky;

}

.branco {
    background-color: #F5F1E6;
    position: sticky;

}


/* Contact page styles */

.hero-contact {
    position: relative;
    background-color: var(--main-color);
    padding: 6rem 1rem;
    color: white;
    overflow: hidden;
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2970&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.hero-contact-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}

.contact-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}


.explore-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
    --main-color: #A0522D;
    /* valor inicial, será atualizado pelo JS */
}

.explore-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--main-color);
    font-weight: 700;
}

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

.explore-wrapper {
    border: 2px solid var(--main-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 74, 153, 0.15);
    background: #fff;
    max-width: 1140px;
    margin: 0 auto;
}

.explore-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.explore-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
    max-width: 350px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.explore-card:hover,
.explore-card:focus {
    outline: none;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgb(0 0 0 / 0.2);
}

.explore-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.explore-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.explore-title {
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    color: var(--main-color);
    font-weight: 700;
}

.explore-description {
    flex-grow: 1;
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
}

.explore-button {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: var(--main-color);
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.explore-button:hover,
.explore-button:focus {
    background: #0066cc;
    outline: none;
}

/* Responsive adjustments */

/* Tablets and small desktops */
@media (max-width: 992px) {
    .explore-section h2 {
        font-size: 2.4rem;
    }

    .explore-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .explore-wrapper {
        padding: 25px;
    }

    .explore-card {
        max-width: 300px;
        flex: 1 1 280px;
    }

    .explore-image {
        height: 180px;
    }
}

/* Mobile devices (phones, small tablets) */
@media (max-width: 768px) {
    .explore-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .explore-card {
        max-width: 100%;
        flex: 1 1 100%;
        margin: 0 auto;
    }

    .explore-section h2 {
        font-size: 2rem;
    }

    .explore-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .explore-wrapper {
        padding: 20px 15px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .explore-image {
        height: 160px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .explore-section h2 {
        font-size: 1.6rem;
    }

    .explore-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .explore-content {
        padding: 15px 10px;
    }

    .explore-title {
        font-size: 1.4rem;
    }

    .explore-description {
        font-size: 0.9rem;
    }

    .explore-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .explore-image {
        height: 140px;
    }
}


@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card i {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.5;
}

.hours p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.hours span {
    font-weight: 500;
    color: var(--text-dark);
}

/* KA2 Projects Section */
.ka2-projects {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fdf3dc;
    border-radius: 18px;
    padding: 2rem 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 0, 0, 0.03));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-header i {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-id {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-dark);
}

.project-link i {
    width: 16px;
    height: 16px;
}

/* Video Gallery Section */
.video-gallery {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.video-gallery h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.video-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.video-grid-init {
    max-width: 800px;
    max-height: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

.video-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: center;
}


/* Modern Photo Gallery Styles */
.carousel {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 500px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Image container */
.carousel .images-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Image styling */
.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease, transform 0.7s ease;
    border-radius: 16px;
}

/* Active image with smooth zoom-in */
.carousel img.active {
    opacity: 1;
    transform: scale(1.05);
    pointer-events: auto;
}

/* Navigation arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}

/* Page title styling */
.page-title {
    text-align: center;
    margin-top: 60px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    /* Darker text for contrast */
}

/* Image counter styling */
.image-counter {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(30, 30, 30, 0.75);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    /* Pill-shaped badge */
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 20;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.carousel img:hover {
    transform: scale(1.05);
    /* Zoom effect on hover */
    transition: transform 0.3s ease;
}

.carousel img {
    transition: opacity 1s ease-in-out;
}




/* Articles Section */
.articles-list {
    padding: 3rem 2rem;
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.article-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card i {
    color: #0073e6;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.article-info h3 a {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--main-color);

}

.article-info p {
    color: #555;
    font-size: 0.95rem;

}



/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #102a43;
        flex-direction: column;
        padding: 1rem;
        transition: max-height 0.3s ease;
        overflow: hidden;
        max-height: 0;
    }

    .nav-links.active {
        display: flex;
        max-height: 560px;
        /* enough to show all items */
    }

    .nav-moodle {
        margin: 0.5rem 0 0;
        justify-content: center;
    }

    .nav-moodle img {
        height: 28px;
        max-width: 109px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: fixed;
        width: 100%;
        margin-top: 0.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero {
        clip-path: polygon(0% 0%,
                100% 0%,
                100% 95%,
                75% 100%,
                50% 95%,
                25% 100%,
                0% 95%);
    }

    .hero h1 {
        font-size: 2.5rem !important;
        /* smaller for mobile */
        line-height: 1.3;
        /* keep other styles if needed */
    }

    .hero h2 {
        font-size: 1.8rem !important;
        /* a bit larger than 1.5rem */
        line-height: 1.3;
        margin-bottom: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
        /* smaller font for paragraph */
        margin: 0 auto 1.5rem;
        padding: 0.75rem;
        /* you can tweak opacity or background-color if needed */
    }

    .hero-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        margin: 0.75rem auto 0 auto;
        width: fit-content;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .with-sidebar {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: auto;
    }

    .main-content {
        width: 100%;
    }

    .course-image img {
        height: 150px;
    }
}

@media (min-width: 1440px) {

    .nav-container,
    .hero-content,
    .features,
    .page-content,
    .about-content,
    .stats-grid,
    .courses-grid,
    .video-grid,
    .project-grid,
    .with-sidebar {
        max-width: var(--max-content-width);
        margin: 0 auto;
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .feature-text h3 {
        font-size: 1.25rem;
    }

    .about-header h1,
    .courses-header h1,
    .register-header h1 {
        font-size: 3rem;
    }

    .sidebar-nav {
        gap: 1rem;
        padding: 1rem;
    }

    .sidebar-link {
        font-size: 1rem;
        padding: 1rem;
        border-radius: 0.375rem;
        background-color: var(--bg-light);
        transition: all 0.3s ease;
    }

    .sidebar-link:hover {
        background-color: var(--accent-color);
        color: var(--primary-color);
    }

    /* Ajuste para sidebar não fixo */
    .sidebar {
        position: relative;
        top: auto;
    }

    .carousel {
        max-width: 1100px;
        height: 600px;
        margin: 50px auto;
    }

    .arrow {
        font-size: 3rem;
        width: 60px;
        height: 60px;
        padding: 14px;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

/* Ultra-wide screen support */
@media (min-width: 2560px) {
    :root {
        --max-content-width: 1920px;
    }

    .hero h2 {
        font-size: 4.5rem;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .hero p {
        font-size: 1.75rem;
    }

    .feature-text h3 {
        font-size: 1.5rem;
    }

    .carousel {
        max-width: 1400px;
        /* Aumenta a largura máxima */
        height: 750px;
        /* Aumenta a altura para aproveitar espaço */
        margin: 60px auto;
        /* Mais margem para respirar */
        border-radius: 20px;
        /* Bordas um pouco maiores */
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
        /* Sombra mais profunda */
    }

    .carousel img.active {
        transform: scale(1.15);
        /* Zoom um pouco maior na imagem ativa */
    }

    .arrow {
        font-size: 3.5rem;
        /* Setas maiores */
        width: 65px;
        height: 65px;
        padding: 16px;
    }

    .arrow.left {
        left: 40px;
    }

    .arrow.right {
        right: 40px;
    }

    .image-counter {
        font-size: 20px;
        padding: 12px 18px;
        border-radius: 7px;
    }

    .page-title {
        font-size: 3rem;
        margin-top: 80px;
        color: #222;
    }
}

.content-courses {
    padding: 10px;
}


.course-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    margin-left: 10px;
}

.course-table th,
.course-table td {
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: middle;
}

.course-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.course-table tbody tr:hover {
    background-color: #f9f9f9;
}

.course-table a,
.course-table i {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-table a:hover {
    color: var(--main-color);
}

.course-table td button {
    margin-right: 0.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.4rem;
    font-size: 1.1rem;
    color: #666;
    transition: color 0.2s ease;
}

.course-table td button:hover {
    color: var(--main-color);
}

.course-table .course-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
}

hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid #ddd;
}

.course-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: var(--main-color);
    padding: 10px;
    border-radius: 20px;
}

#addCourseForm {
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

#addCourseForm h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
    font-size: 1.8rem;
}

/* Cada grupo de campo do formulário */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

/* Labels com espaçamento e cor */
.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

/* Inputs e textarea estilizados */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group textarea {
    padding: 10px 14px;
    border: 1.8px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
}

/* Campo textarea com altura maior */
.form-group textarea {
    min-height: 90px;
}

/* Foco nos inputs para destaque */
.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

/* Botão estilizado */
.form-btn {
    width: 100%;
    background: #A0522D;
    background: var(--main-color, #A0522D);
    color: #fff !important;
    border: none;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, filter 0.2s ease;
    margin-top: 10px;
    opacity: 1 !important;
}

/* Hover no botão */
.form-btn:hover {
    background: #8B4513;
    filter: brightness(1.05);
}

.form-btn:disabled {
    opacity: 0.65 !important;
    cursor: wait;
}

.admin-body .form-btn,
.admin-body .certificate-form .form-btn {
    background: #A0522D !important;
    color: #fff !important;
}

/* Testemunhas */

.carousel-test {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: #f8f9fa;
    padding-bottom: 100px;
    flex-wrap: wrap;
    /* Allows wrapping on small screens */
}

.arrow-test {
    font-size: 2rem;
    color: black;
    cursor: pointer;
    user-select: none;
}

.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
}

.testimonial-text {
    font-size: 1rem;
    color: #222;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.stars {
    color: gold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.author {
    font-weight: bold;
    text-align: right;
    font-size: 1rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .carousel-test {
        flex-direction: column;
        align-items: center;
    }

    .arrow-test {
        display: none;
        /* Hide arrows on mobile for simplicity */
    }

    .testimonial-card {
        width: 100%;
        max-width: 90%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .testimonial-text {
        font-size: 0.95rem;
    }

    .author {
        font-size: 0.95rem;
    }

    .stars {
        font-size: 1rem;
    }
}

/* Protocols */

.logo-container {
    background: #f8f9fa;
    padding-bottom: 40px;
}

.logo-container img {
    display: flex;
    height: 150px;
    max-width: 100%;
    justify-content: center;
    align-content: center;
    margin: auto;
}

.logo-container h1 {
    font-family:'Poppins';
    font-size: clamp(16px, 3vw, 30px);
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Admin panel */
.admin-body {
    margin: 0;
    background: #f4f6f8;
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #1a2a3a;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
    flex-shrink: 0;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem 1.5rem;
    font-weight: 700;
}

.admin-brand img {
    width: 36px;
    height: 36px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0.75rem;
    flex: 1;
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: none;
    color: #c8d2dc;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
    background: #2c4258;
    color: #fff;
}

.admin-sidebar-footer {
    padding: 1rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid #2c4258;
    margin-top: 1rem;
}

.admin-nav-link {
    color: #c8d2dc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.admin-nav-link:hover {
    color: #fff;
}

.admin-main {
    flex: 1;
    padding: 1.5rem 2rem 3rem;
    overflow-x: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 180px;
}

.date-mode-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.by-order-btn {
    border: 1px solid #4a90e2;
    background: #fff;
    color: #4a90e2;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
}

.by-order-btn[aria-pressed="true"],
.by-order-btn.active {
    background: #4a90e2;
    color: #fff;
}

.date-fields-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.drag-handle {
    cursor: grab;
    user-select: none;
    text-align: center;
    color: #444;
    width: 2.5rem;
    font-size: 1.25rem;
    touch-action: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.admin-row-actions {
    white-space: nowrap;
}

.admin-row-actions button,
.course-table .view-reg-btn,
.course-table .delete-reg-btn,
.course-table .edit-btn,
.course-table .delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0 0.15rem;
    border: 1px solid #d5dde5;
    border-radius: 0.4rem;
    background: #fff;
    color: #1a2a3a;
    cursor: pointer;
}

.admin-row-actions button:hover,
.course-table .view-reg-btn:hover,
.course-table .edit-btn:hover {
    background: #eef3f7;
}

.course-table .delete-btn:hover,
.course-table .delete-reg-btn:hover {
    background: #fde8e8;
    border-color: #e8a0a0;
    color: #a12a2a;
}

.admin-row-actions button i,
.admin-row-actions button svg,
.course-table .view-reg-btn i,
.course-table .view-reg-btn svg,
.course-table .delete-reg-btn i,
.course-table .delete-reg-btn svg,
.course-table .edit-btn i,
.course-table .edit-btn svg,
.course-table .delete-btn i,
.course-table .delete-btn svg,
.admin-file-link i,
.admin-file-link svg {
    width: 1rem;
    height: 1rem;
}

.admin-file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #A0522D;
    text-decoration: none;
    font-weight: 600;
}

.admin-file-link:hover {
    text-decoration: underline;
}

.sortable-row.sortable-ghost {
    opacity: 0.45;
    background: #e8f1fb;
}

.sortable-row.sortable-over {
    outline: 2px dashed #4a90e2;
}

.registrations-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: left;
}

.admin-section .registrations-header > div:first-child {
    text-align: left;
}

.export-actions .export-btn {
    cursor: pointer;
}

.export-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 0.45rem;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color 0.2s, filter 0.2s, transform 0.15s;
}

.export-btn i {
    width: 1rem;
    height: 1rem;
}

.export-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.export-btn-excel {
    background: #A0522D;
    color: #fff;
}

.export-btn-pdf {
    background: #fff;
    color: #A0522D;
    border-color: #A0522D;
}

.admin-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    padding: 0.5rem;
}

.certificate-form {
    max-width: 560px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
}

.cert-preview {
    background: #f0f4f8;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.admin-modal,
.enroll-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.admin-modal.hidden,
.enroll-modal.hidden {
    display: none;
}

.admin-modal-content,
.enroll-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.enroll-modal-content {
    width: min(640px, 100%);
}

.admin-modal-close,
.enroll-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

.radio-row {
    display: flex;
    gap: 1.5rem;
}

.enroll-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--main-color, #4a90e2);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.enroll-button:hover {
    filter: brightness(0.95);
}

.course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.enroll-message {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.enroll-message.success {
    color: #1b7a3d;
}

.enroll-message.error {
    color: #b00020;
}

@media (max-width: 800px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}