/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    scroll-behavior: smooth;
    background-color: #ffffff;
}

/* Navbar Styling */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

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

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -1px;
}

.logo span { color: #2563eb; }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 2.5rem; }

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover { 
    color: #2563eb; 
    font-size: large;
    transition: color 0.2s, font-size 0.2s;
}

@media (max-width: 768px) {
    .nav-links li { margin-left: 0.8rem; } 
    .navbar {
        justify-content: center;
        align-items: center;
    }        
}

/* Section Layout */
.section {
    padding: 80px 5% 20px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.gray-bg { background-color: #f9fafb; max-width: 100%; }

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

/* Responsive Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Button */
.cta-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
}

footer {
    padding: 3rem;
    margin-bottom: 15rem;
    background: white;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

.card-example-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 15px;
}

.card-title-description {
    text-align: center; 
    max-width: 50%;
}

.card-image {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 40%; 
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.card-image img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {

    .card-image {
        width: 80%; 
        margin: 0 auto; 
    }  

    .card-title-description {
        max-width: 100%;
    }      
}



.card-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.view-link {
    color: #2563eb;
    text-decoration: none;
    padding: 5px 10px;
    transition: background 0.3s, border-radius 0.3s;
}

.view-link:hover {
    background: #eff6ff;
    border-radius: 4px;
    text-decoration: underline;
}

.separator {
    color: #d1d5db;
    margin: 0 5px;
}

.card-features {
    list-style: none;
    text-align: left;
    font-size: 0.85rem;
    margin: 1.5rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.card-features li {
    color: #374151;
    font-weight: 500;
}



.personal-note {
    font-size: 0.88rem;
    color: #6b7280;
    border-left: 2px solid #2563eb;
    padding-left: 12px;
    margin: 1.5rem 0;
    text-align: left;
    line-height: 1.4;
}

.cta-udemy {
    background-color: #a435f0;
    color: white !important;
    padding: 14px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: block;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto;
}

.cta-udemy:hover {
    background-color: #8710d8;
    box-shadow: 0 4px 12px rgba(164, 53, 240, 0.3);
}

.cta-gumroad {
    background-color: #ff90ad; 
    color: #000 !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    margin-top: 10px;
}
.cta-gumroad {
    width: 100%;
    margin-top: 20px;
    background-color: #000000; /* Cor preta oficial do Gumroad ou mantém o Rosa se preferires */
    color: #ffffff !important;
}

.cta-udemy:hover, .cta-gumroad:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

#courses .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Coupon Area */
.coupon-area {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coupon-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #e91e63;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* O Botão quando é promoção */
.cta-udemy.promo {
    background: linear-gradient(135deg, #a435f0 0%, #e91e63 100%);
    border: none;
    animation: pulse 2s infinite;
}

.cta-udemy.promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(233, 30, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

html {
    scroll-padding-top: 80px; /* Evita que o título da secção fique escondido pela navbar fixa */
}