:root {
    --color-main: #1d396d;
    --color-accent: #e8a838;
}

body {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Arimo', Arial, Helvetica, sans-serif;
}

nav,
.nav-font {
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

.bg-main {
    background-color: var(--color-main);
}

.bg-accent {
    background-color: var(--color-accent);
}

.text-main {
    color: var(--color-main);
}

.text-accent {
    color: var(--color-accent);
}

.border-main {
    border-color: var(--color-main);
}

.border-accent {
    border-color: var(--color-accent);
}

.hero-bg {
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.section-bg {
    background-image: url('../assets/images/section-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.overlay {
    background-color: rgba(29, 57, 109, 0.53);
}

.overlay-dark {
    background-color: rgba(29, 57, 109, 0.67);
}

.brightness-overlay {
    background-color: rgba(0, 0, 0, 0.1);
}

.brightness-overlay-dark {
    background-color: rgba(0, 0, 0, 0.09);
}

.highlight-card {
    position: relative;
    overflow: hidden;
    background-color: var(--color-main);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.95;
    transition: opacity 0.3s;
}

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

.highlight-card-1::before {
    background-image: url('../assets/images/highlight-1.jpeg');
}

.highlight-card-2::before {
    background-image: url('../assets/images/covenentesl_textbooks.jpg');
}

.highlight-card-3::before {
    background-image: url('../assets/images/covenantesl_lession1.jpg');
}

.highlight-card-4::before {
    background-image: url('../assets/images/highlight-4.jpg');
}

.gradient-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(29, 57, 109, 0.8) 100%);
}

.mobile-menu {
    display: none;
}

/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 320px and up) */
@media (max-width: 479px) {
    .hero-bg h1 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }

    .hero-bg p {
        font-size: 0.9rem !important;
    }

    .highlight-card h2 {
        font-size: 1.25rem !important;
    }

    .lang-btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    footer .grid {
        gap: 1.5rem !important;
    }
}

/* Small Devices (phones, 480px and up) */
@media (min-width: 480px) and (max-width: 639px) {
    .hero-bg h1 {
        font-size: 2rem !important;
    }

    .highlight-card h2 {
        font-size: 1.5rem !important;
    }
}

/* Medium Devices (tablets, 640px and up) */
@media (min-width: 640px) and (max-width: 767px) {
    .hero-bg h1 {
        font-size: 2.5rem !important;
    }

    .hero-bg p {
        font-size: 1.1rem !important;
    }

    .highlight-card h2 {
        font-size: 1.75rem !important;
    }

    /* Tablet: 2 columns for highlights */
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Large Devices (tablets landscape, 768px and up) */
@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-menu {
        display: none;
    }

    .desktop-menu {
        display: flex;
    }

    /* Tablet landscape: 2-3 columns */
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    footer .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    footer .grid>div:last-child {
        grid-column: span 2;
    }

    .hero-bg {
        min-height: 50vh !important;
    }

    .section-bg {
        min-height: 45vh !important;
    }
}

/* Extra Large Devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
    }

    .desktop-menu {
        display: flex;
    }

    .highlights-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    footer .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .hero-bg {
        min-height: 60vh !important;
    }

    .section-bg {
        min-height: 50vh !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets for mobile */
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }

    nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .highlight-card {
        cursor: pointer;
    }

    /* Remove hover effects on touch devices */
    .highlight-card:hover::before {
        opacity: 0.95;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-bg {
        min-height: 80vh !important;
    }

    .section-bg {
        min-height: 70vh !important;
    }
}

/* Print Styles */
@media print {

    .mobile-menu,
    .lang-switcher,
    .social-icons,
    header {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-bg,
    .section-bg {
        background: white !important;
        color: black !important;
    }
}