/* --- CSS VARIABLES --- */
:root {
    --primary-blue: #b71c1c; /* main red */
    --primary-dark: #7f0000; /* deep red */
    --bg-light: #fbf6f6; /* very light warm */
    --text-dark: #1f1f1f;
    --text-gray: #6b6b6b;
}

/* --- BASE STYLES --- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
}

/* --- HEADER --- */
/* --- HEADER --- */
header {
    background: white;
    width: 100%;
    padding: 40px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    box-sizing: border-box;
    border-bottom: 1px solid #e2e8f0; /* Crisp line at the bottom */
}

/* Upgrades the Logo */
header img {
    width: 130px; /* This safely overrides the huge 250px in your HTML */
    height: 130px;
    border-radius: 50%; /* Makes the logo a perfect circle */
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Gives the logo a 3D floating effect */
    border: 3px solid white; /* Clean white ring around the logo */
    margin-bottom: 15px;
}

/* Upgrades the School Name (The first paragraph) */
header p:first-of-type {
    font-size: 12px;
    text-transform: uppercase; /* Makes it all caps */
    letter-spacing: 1.5px; /* Spaces the letters out for a modern look */
    color: var(--text-gray);
    font-weight: 700;
    margin-bottom: 5px;
}

/* Upgrades the Main Title */
header h1 {
    font-size: 34px;
    margin: 5px 0 10px;
    font-weight: 800;
    /* This creates a sleek gradient text effect instead of a flat color */
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Upgrades the Description (The second paragraph) */
header p:last-of-type {
    font-size: 20px;
    color: var(--text-gray);
    margin: 0 auto;
    max-width: 450px; /* Prevents the text from stretching too wide on big screens */
    line-height: 1.5;
}

/* --- MAIN CONTENT & LINKS --- */
.top-link {
    display: inline-block;
    margin: 20px 0 10px;
    font-size: 15px;
    color: var(--primary-blue, #0d47a1);
    text-decoration: none;
    font-weight: bold;
}

.top-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* --- THE MENU CARD --- */
.entry-card {
    background: white;
    width: 360px;
    margin: 10px auto;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BUTTONS & 2x2 GRID --- */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates a 2-column grid */
    gap: 12px;
}

.entry-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-sizing: border-box;
}

/* Hover effect: subtle red / black gradient and lift */
.entry-button:hover {
    background: linear-gradient(90deg, rgba(199,46,46,0.95), rgba(20,20,20,0.9));
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(183,28,28,0.16);
}

.entry-button:active {
    transform: scale(0.96);
}

/* --- THE BREATHING ANIMATION (For Lojëra gjuhësore) --- */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(183, 28, 28, 0); }
    100% { box-shadow: 0 0 0 0 rgba(183, 28, 28, 0); }
}

.entry-button.secondary {
    grid-column: span 2; /* Stretches across both columns */
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-2));
    color: white;
    border: none;
    margin-top: 8px;
    font-size: 16px;
    animation: pulseGlow 2s infinite; /* Connects the breathing animation */
}

.entry-button.secondary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-2));
    animation: none; /* Stops the animation when hovering */
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(183,28,28,0.28);
}

/* --- FOOTER & IMAGES --- */
.students {
    margin: 30px 0;
    flex: 1;
}

footer {
    background: #333;
    color: white;
    padding: 20px;
    width: 100%;
    font-size: 14px;
    box-sizing: border-box;
}

/* --- ABOUT US / CONTENT PAGES --- */
.page-container {
    padding: 30px 15px;
    width: 100%;
    max-width: 800px; /* Keeps reading lines from getting too long */
    box-sizing: border-box;
    flex: 1; /* Pushes the footer to the bottom */
}

.content-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    text-align: left; /* Makes text read left-to-right properly */
    animation: fadeIn 0.8s ease;
}

/* Paragraph styling for easy reading */
.content-card p {
    font-size: 16px;
    line-height: 1.7; /* Adds nice breathing room between lines */
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* Beautiful highlighted box for contact info */
.contact-info {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    margin: 25px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --- IMAGE GALLERY --- */
.award-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.award-gallery img {
    width: 45%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* =========================================
   Global Variables & Color Palette
   ========================================= */
:root {
    --primary-blue: #b71c1c; /* red accent (keeps var name for compatibility) */
    --accent-1: #ff8a80; /* soft red */
    --accent-2: #1f1f1f; /* dark/near-black accent */
    --bg-light: #fbf6f6;
    --bg-gradient: linear-gradient(135deg, #fbf6f6 0%, #fff5f5 50%, #fffaf0 100%);
    --card-bg: #ffffff;
    --text-main: #222222;
    --border-color: #f0e6e6;

    --footer-bg: #303134;
    --footer-text: #e8eaed;

    --border-radius: 12px;
    --box-shadow: 0 6px 20px rgba(15, 32, 40, 0.06);
    --transition-speed: 0.24s;
}

/* =========================================
   Base Styles & Layout
   ========================================= */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    background-image: var(--bg-gradient);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
  flex: 1; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

h1, h2, h3 {
    color: var(--primary-blue);
  margin-top: 0;
  margin-bottom: 24px;
}

/* =========================================
   Standard Card
   ========================================= */
.card {
  background-color: var(--card-bg);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  width: 100%;
  max-width: 520px;
}

/* =========================================
   Buttons
   ========================================= */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
}

/* Outline Button (For class selection, quiz answers, etc.) */
.btn-outline {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: linear-gradient(90deg, rgba(199,46,46,0.06), rgba(20,20,20,0.02));
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Primary Button (Solid Blue - like "Lojëra gjuhësore") */
.btn-primary {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-2));
    color: white;
    border: none;
}

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

/* =========================================
   Footer
   ========================================= */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 16px;
  font-size: 14px;
  margin-top: auto;
}