/* ==================================================
   VICHARKRANTI YUVA VAKTA 2027
   PREMIUM RED + WHITE + GOLD WEBSITE
   Main Stylesheet
================================================== */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800;900&display=swap');

/* ROOT VARIABLES */
:root {
    --primary: #990000;
    --primary-dark: #650000;
    --primary-light: #c51616;

    --gold: #d6a323;
    --gold-light: #ffe49a;

    --white: #ffffff;
    --cream: #fffdf6;
    --light: #f8f6f2;
    --dark: #242020;
    --text: #514747;
    --muted: #817777;

    --shadow: 0 8px 30px rgba(90, 0, 0, 0.09);
    --shadow-hover: 0 15px 35px rgba(90, 0, 0, 0.16);

    --radius: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* COMMON CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 75px 0;
}

.section-light {
    background: var(--white);
}

.section-cream {
    background: var(--cream);
}

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

/* SECTION HEADING */
.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading .subtitle {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-heading h2 {
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 900;
    color: var(--primary);
    margin: 8px 0 12px;
}

.section-heading p {
    color: var(--muted);
    max-width: 650px;
    margin: auto;
    font-size: 15px;
}

.section-red .section-heading h2,
.section-red .section-heading p {
    color: var(--white);
}

/* GOLD LINE */
.gold-line {
    width: 75px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--gold),
        var(--gold-light)
    );
    margin: 12px auto;
    border-radius: 20px;
}

/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;
    min-height: 78px;
    background: rgba(255, 255, 255, 0.97);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
    border-bottom: 2px solid var(--gold);
}

.header-inner {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.logo-text h2 {
    font-size: 19px;
    color: var(--primary);
    font-weight: 900;
    line-height: 1.4;
}

.logo-text p {
    font-size: 11px;
    color: var(--text);
    font-weight: 600;
}

.menu-btn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: rotate(5deg);
}

/* =========================================
   SIDEBAR MENU
========================================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 310px;
    max-width: 85%;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 1200;
    transform: translateX(-105%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );
    padding: 28px 20px;
    color: var(--white);
    position: relative;
    text-align: center;
}

.sidebar-header img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.sidebar-header h3 {
    font-size: 19px;
    font-weight: 900;
}

.sidebar-header p {
    font-size: 12px;
    color: var(--gold-light);
}

.sidebar-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 22px;
}

.sidebar-nav {
    padding: 18px 14px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    margin-bottom: 5px;
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #fff0ee;
    color: var(--primary);
    padding-left: 22px;
}

.sidebar-nav a .nav-icon {
    font-size: 19px;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    position: relative;
    padding: 65px 0;
    background:
        radial-gradient(
            circle at top right,
            #fff0d0,
            transparent 40%
        ),
        linear-gradient(135deg, #fffdf7, #fff3ed);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
}

.hero-content .tag {
    display: inline-block;
    padding: 8px 17px;
    background: #fff0d1;
    color: var(--primary);
    border: 1px solid var(--gold);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 55px);
    line-height: 1.35;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content p {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 25px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: 4px solid var(--white);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================
   BANNER
========================================= */

.banner-section {
    padding: 25px 0;
    background: var(--white);
}

.main-banner {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--gold);
}

.main-banner img {
    width: 100%;
    height: auto;
}

/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 25px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.btn-gold:hover {
    background: #f0c75d;
    transform: translateY(-3px);
}

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

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

/* =========================================
   CARDS
========================================= */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid #f0e4dc;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: #fff0e9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    margin-bottom: 17px;
}

.card h3 {
    color: var(--primary);
    font-size: 19px;
    margin-bottom: 10px;
    font-weight: 800;
}

.card p {
    color: var(--text);
    font-size: 14px;
}

/* =========================================
   PRIZES SECTION
========================================= */

.prize-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--gold);
}

.prize-card .medal {
    font-size: 48px;
    margin-bottom: 10px;
}

.prize-card h3 {
    font-size: 20px;
}

.prize-card .amount {
    font-size: 29px;
    font-weight: 900;
    color: var(--primary);
    margin: 10px 0;
}

.prize-card .description {
    font-size: 13px;
    color: var(--muted);
}

/* =========================================
   TOPICS SECTION
========================================= */

.topic-list {
    display: grid;
    gap: 15px;
}

.topic-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.topic-item:hover {
    transform: translateX(5px);
}

.topic-number {
    min-width: 35px;
    height: 35px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.topic-item p {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* =========================================
   RULES SECTION
========================================= */

.rules-list {
    display: grid;
    gap: 15px;
}

.rule-item {
    background: var(--white);
    padding: 18px 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border: 1px solid #f1e6dc;
    box-shadow: var(--shadow);
}

.rule-number {
    min-width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.rule-item p {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

/* =========================================
   WINNERS SECTION
========================================= */

.winners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.winner-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #eee2d8;
    transition: var(--transition);
}

.winner-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
}

.winner-image {
    width: 100%;
    height: 250px;
    background: #f3eee8;
    overflow: hidden;
}

.winner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.winner-card:hover .winner-image img {
    transform: scale(1.06);
}

.winner-info {
    padding: 18px;
    text-align: center;
}

.winner-year {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.winner-info h3 {
    font-size: 17px;
    color: var(--primary);
    font-weight: 800;
}

/* =========================================
   REGISTRATION SECTION
========================================= */

.registration-box {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary-light)
    );
    color: var(--white);
    border-radius: 20px;
    padding: 45px 25px;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.registration-box h2 {
    font-size: clamp(25px, 4vw, 35px);
    margin-bottom: 12px;
    font-weight: 900;
}

.registration-box p {
    color: #ffe7e7;
    font-size: 15px;
    margin-bottom: 22px;
}

/* =========================================
   PAGE BANNER
========================================= */

.page-banner {
    padding: 65px 15px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );
    border-bottom: 4px solid var(--gold);
}

.page-banner h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    margin-bottom: 10px;
}

.page-banner p {
    color: var(--gold-light);
    font-size: 15px;
}

/* =========================================
   CONTACT SECTION
========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.contact-card {
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f1e6dc;
}

.contact-card h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text);
    font-size: 14px;
    margin: 5px 0;
}

/* =========================================
   ABOUT SECTION
========================================= */

.about-content {
    max-width: 900px;
    margin: auto;
}

.about-content p {
    color: var(--text);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 18px;
    text-align: justify;
}

/* =========================================
   FOOTER
========================================= */

.footer {
    background: #430000;
    color: var(--white);
    padding-top: 55px;
    border-top: 5px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 35px;
}

.footer-about img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer h3 {
    color: var(--gold-light);
    font-size: 19px;
    margin-bottom: 17px;
}

.footer p {
    color: #e8dada;
    font-size: 13px;
    line-height: 1.9;
}

.footer-links a {
    display: block;
    color: #e8dada;
    font-size: 14px;
    margin-bottom: 11px;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding: 18px 10px;
    background: #300000;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom p {
    font-size: 12px;
}

/* =========================================
   BACK TO TOP
========================================= */

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 900;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-up {
    animation: fadeUp 0.8s ease both;
}

.animate-fade {
    animation: fadeIn 1s ease both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   FORMS
========================================= */

.form-container {
    max-width: 750px;
    margin: auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 9px;
    outline: none;
    background: #fffdfb;
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 163, 35, 0.12);
}

/* =========================================
   BREADCRUMB
========================================= */

.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 700;
}

/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 900px) {

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 650px;
        margin: auto;
    }

    .cards-grid,
    .winners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 50px 0;
    }

    .header,
    .header-inner {
        min-height: 68px;
    }

    .logo-area img {
        width: 46px;
        height: 46px;
    }

    .logo-text h2 {
        font-size: 15px;
    }

    .logo-text p {
        font-size: 9px;
    }

    .menu-btn {
        width: 42px;
        height: 42px;
    }

    .hero {
        padding: 45px 0;
    }

    .hero-content h1 {
        font-size: 31px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-image img {
        border-radius: 12px;
    }

    .main-banner {
        border-radius: 10px;
    }

    .cards-grid,
    .winners-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 21px;
    }

    .winner-image {
        height: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer {
        padding-top: 40px;
    }

    .registration-box {
        padding: 35px 18px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .form-container {
        padding: 20px;
    }

    .page-banner {
        padding: 45px 15px;
    }

    .about-content p {
        font-size: 14px;
    }

    .back-to-top {
        right: 14px;
        bottom: 18px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .logo-text h2 {
        font-size: 13px;
    }

    .logo-area {
        gap: 7px;
    }

    .hero-content h1 {
        font-size: 27px;
    }

    .btn {
        width: 100%;
    }

    .sidebar {
        width: 285px;
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
