/*
Theme Name: SMPUJ Classic
Theme URI: 
Author: Antigravity
Author URI: 
Description: A custom classic theme for SMPUJ based on provided HTML/CSS.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smpuj-classic
*/

/* ================= VARIABLES ================= */
:root {
    --color-primary: #2E5790;
    --color-primary-dark: #1a3c6e;
    --color-secondary: #FFBC89;
    /* Peach accent mentioned in analysis */
    --color-text-main: #333333;
    --color-text-light: #777777;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 5px;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    font-size: 14px;
    /* Matches reference site body size approx */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--color-text-main);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #333;
    /* Ensuring readability on peach */
}

.btn-secondary:hover {
    opacity: 0.9;
}

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

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

/* ================= HEADER ================= */
.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: height 0.3s ease;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.main-nav .current-menu-item>a {
    color: var(--color-primary);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border-top: 3px solid var(--color-primary);
    list-style: none;
    min-width: 200px;
    box-shadow: var(--shadow-soft);
    padding: 10px 0;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    text-transform: none;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.has-dropdown:hover .dropdown {
    display: block;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(rgba(46, 87, 144, 0.9), rgba(46, 87, 144, 0.8)), url('assets/hero-bg.jpg');
    /* Fallback or placeholder */
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: var(--color-white);
}

/* If no image is present, use a solid gradient close to the reference */
.hero:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--color-primary), #1a3c6e);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================= SECTIONS ================= */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
    color: var(--color-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

/* ================= INTRO / SERVICES / CARDS ================= */
.services {
    background-color: #f2f6fc;
}

.updates {
    background-color: #f2f6fc;
}

.intro-grid,
.services-grid,
.why-grid,
.updates-grid {
    display: grid;
    gap: 30px;
}

.card,
.service-card,
.testimonial-card,
.update-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.service-card:hover,
.testimonial-card:hover,
.update-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: transparent;
}

.service-card {
    background-color: var(--color-white);
    border-color: #E0E7EF;
}

.service-icon svg {
    width: 64px;
    height: 64px;
    fill: var(--color-primary);
}

.service-card h3,
.update-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.image-placeholder {
    background: #e9ecef;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    border-radius: var(--border-radius);
}

.intro-image img {
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    width: 100%;
}

/* ================= TESTIMONIALS ================= */
.testimonial-card {
    border-left: 4px solid var(--color-primary);
}

/* ================= CTA ================= */
.cta-banner {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 60px 0;
}

.cta-banner h2 {
    color: var(--color-white);
}

.cta-banner .btn {
    margin-top: 25px;
    background: var(--color-white);
    color: var(--color-primary);
}

.cta-banner .btn:hover {
    background: #f0f0f0;
}

/* ================= FOOTER ================= */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    border-top: none;
}

.footer-grid {
    display: grid;
    gap: 40px;
    padding: 60px 0;
}

.footer-about h3 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 5px;
}


/* ================= LINKS ================= */
.learn-more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-top: 15px;
}

.learn-more-link::after {
    content: '→';
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.learn-more-link:hover::after {
    transform: translateX(5px);
}

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

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {

    .intro-grid,
    .services-grid,
    .why-grid,
    .updates-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .intro-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}