/* ===============================
   MATHAI LOGO COMPETITION PAGE
================================= */

.logo-page {
    --lp-blue: #3498db;
    --lp-navy: #1a3a6c;
    --lp-dark: #2c3e50;
    --lp-gold: #f39c12;
    --lp-soft: #f4f8fd;
    --lp-text: #333;
    font-family: 'Roboto', sans-serif;
    color: var(--lp-text);
}

.logo-page h1,
.logo-page h2 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
}

/* ---------- Hero ---------- */
.logo-hero {
    position: relative;
    overflow: hidden;
    padding: 170px 20px 90px; /* top clears the fixed site header (~104px) */
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1a3a6c 0%, #2b6cb0 55%, #3498db 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
}

.logo-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
}

.logo-hero .accent {
    color: #ffc857;
}

.hero-question {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 18px;
    color: #ffe3a3;
}

.hero-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0 auto 16px;
    max-width: 700px;
}

.hero-who {
    display: inline-block;
    margin: 0 0 28px;
    padding: 8px 18px;
    font-size: 1.05rem;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 12px;
}

.hero-who i {
    margin-right: 6px;
    color: #ffc857;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* floating math symbols */
.float-symbol {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.12);
    user-select: none;
    animation: lpFloat 9s ease-in-out infinite;
}

.float-symbol.s1 { top: 8%;  left: 6%;  font-size: 5rem;   animation-delay: 0s; }
.float-symbol.s2 { top: 60%; left: 10%; font-size: 6rem;   animation-delay: -2s; }
.float-symbol.s3 { top: 12%; right: 8%; font-size: 5.5rem; animation-delay: -4s; }
.float-symbol.s4 { top: 68%; right: 12%; font-size: 6.5rem; animation-delay: -1s; }
.float-symbol.s5 { top: 40%; left: 46%; font-size: 4rem;   animation-delay: -6s; }
.float-symbol.s6 { top: 78%; left: 40%; font-size: 4.5rem; animation-delay: -3s; }

@keyframes lpFloat {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-18px) rotate(6deg); }
}

/* ---------- Buttons ---------- */
.logo-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-btn i {
    margin-right: 8px;
}

.logo-btn:hover {
    transform: translateY(-3px);
}

.logo-btn-gold {
    color: #fff;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.45);
}

.logo-btn-gold:hover {
    box-shadow: 0 10px 22px rgba(243, 156, 18, 0.6);
}

.logo-btn-ghost {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.logo-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- Layout ---------- */
.logo-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.logo-section {
    margin-top: 60px;
}

.logo-title {
    position: relative;
    margin: 0 0 30px;
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    color: var(--lp-dark);
}

.logo-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 4px;
    background: var(--lp-gold);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin: -10px 0 24px;
}

/* ---------- Prize ---------- */
.prize-card {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: -45px;
    padding: 34px 38px;
    background: linear-gradient(135deg, #fff8e6, #ffeec2);
    border: 2px solid #ffd77a;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.prize-icon {
    flex-shrink: 0;
    font-size: 4.5rem;
    line-height: 1;
}

.prize-body h2 {
    margin: 0 0 4px;
    font-size: 1.8rem;
    color: var(--lp-dark);
}

.prize-sub {
    margin: 0 0 6px;
    color: #7a5b00;
    font-weight: 500;
}

.prize-main {
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #b36b00;
}

.prize-text {
    margin: 0;
    line-height: 1.6;
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e3ecf6;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.steps li:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.steps p {
    margin: 0;
    line-height: 1.55;
}

.step-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-blue), var(--lp-navy));
    border-radius: 50%;
}

/* ---------- Think about ---------- */
.think-section {
    padding: 40px 24px;
    background: var(--lp-soft);
    border-radius: 24px;
}

.idea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.idea-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--lp-dark);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.idea-grid i {
    font-size: 2rem;
    color: var(--lp-blue);
}

.motto {
    margin: 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lp-navy);
}

.motto q {
    color: var(--lp-gold);
    quotes: "\201C" "\201D";
}

/* ---------- Practical info ---------- */
.info-card {
    padding: 10px 30px 24px;
    background: #fff;
    border: 1px solid #e3ecf6;
    border-left: 6px solid var(--lp-gold);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 20px;
    padding: 16px 0;
    border-bottom: 1px dashed #d5e0ee;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 700;
    color: var(--lp-dark);
}

.info-value a {
    color: var(--lp-blue);
    text-decoration: none;
}

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

.info-value code {
    padding: 3px 10px;
    font-size: 0.95rem;
    background: var(--lp-soft);
    border-radius: 6px;
}

.deadline {
    padding: 4px 14px;
    color: #fff;
    background: #e74c3c;
    border-radius: 50px;
}

.info-note {
    margin: 18px 0 0;
    line-height: 1.6;
}

/* ---------- School testing CTA ---------- */
.test-cta {
    margin-top: 70px;
    padding: 46px 30px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1a3a6c, #3498db);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(26, 58, 108, 0.35);
}

.test-cta h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.test-cta p {
    max-width: 640px;
    margin: 0 auto 26px;
    font-size: 1.15rem;
    line-height: 1.65;
}

/* ---------- Footer line ---------- */
.logo-footer-line {
    margin: 46px 0 0;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--lp-navy);
}

.logo-footer-line a {
    color: var(--lp-blue);
    font-weight: 700;
    text-decoration: none;
}

.logo-footer-line a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .logo-hero {
        padding: 150px 16px 80px;
    }

    .prize-card {
        flex-direction: column;
        padding: 28px 22px;
        text-align: center;
    }

    .info-card {
        padding: 6px 18px 20px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .float-symbol {
        font-size: 3rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-symbol {
        animation: none;
    }
}
