/* CSS for Que Aprendo - Static Version */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700;800&display=swap');

:root {
    --primary: #0047AB;
    --secondary: #CC5500;
    --accent: #FF8C00;
    --background: #FFFFFF;
    --foreground: #1A1A1A;
    --muted: #666666;
    --light-gray: #F8F9FA;
    --border: #E5E5E5;
    --success: #28A745;
    --white: #FFFFFF;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --header-height: 80px;
}

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

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--foreground);
    background-color: var(--light-gray);
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
    text-align: center;
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #003682;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #A34400;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Header Styles */
.main-header {
    height: var(--header-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo span.bold {
    font-weight: 800;
}

.logo span.dot {
    color: var(--secondary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 14px 0 rgba(204, 85, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(204, 85, 0, 0.45);
}

/* Footer Styles */
.main-footer {
    background-color: #1A1A1A;
    color: #FFFFFF;
    padding: 60px 0 20px;
    marginTop: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    font-size: 1.5rem;
    color: #FFFFFF;
    font-weight: 600;
}

.footer-tagline {
    color: #AAAAAA;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    font-size: 1.1rem;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #AAAAAA;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--white);
}

.whatsapp-btn {
    background-color: #25D366;
    color: #FFFFFF;
    font-size: 0.85rem;
    padding: 10px 15px;
    width: 100%;
    max-width: 220px;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #777777;
}

/* Hero & Search */
.hero {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--foreground);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.search-form {
    display: flex;
    align-items: center;
    backgroundColor: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border);
}

.search-group {
    display: flex;
    flex: 1;
    align-items: center;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 15px;
}

.search-input {
    border: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    padding: 12px 0;
}

.search-select {
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent;
    padding: 12px;
    cursor: pointer;
}

.search-divider {
    width: 1px;
    height: 30px;
    background-color: var(--border);
}

/* Card Styles */
.institution-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.institution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
    background-color: #f3f4f6;
}

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

.card-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
    margin: 4px 0;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.view-details {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .header-container {
        flex-direction: column;
        padding: 15px 0;
        height: auto;
        gap: 15px;
    }

    .main-header {
        height: auto;
    }

    .search-form {
        flex-direction: column;
        padding: 15px;
    }

    .search-group {
        width: 100%;
        flex-direction: column;
    }

    .search-divider {
        display: none;
    }

    .search-input-wrapper,
    .search-select {
        width: 100%;
        padding: 10px 0;
    }

    .search-form button {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Utilities from global.css */
@media (max-width: 900px) {
    .detail-grid {
        flex-direction: column;
    }

    .detail-sidebar {
        width: 100%;
        min-width: 0;
    }

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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