/* =========================================================
   Shivam Educational Society - Landing Page Styles
   Updated with Official Letterhead Theme
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matched to the letterhead (Maroon/Brown & Black) */
    --primary:   #5c2e2e; /* Maroon/Brown */
    --primary-2: #7a3e3e;
    --accent:    #d4af37; /* Gold accent */
    --dark:      #1a1a1a;
    --text:      #333333;
    --muted:     #666666;
    --bg:        #fdfbf7; /* Warm white */
    --white:     #ffffff;
    --radius:    14px;
    --shadow:    0 10px 30px rgba(92, 46, 46, 0.10);
    --shadow-lg: 0 18px 45px rgba(92, 46, 46, 0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Georgia', 'Times New Roman', serif; /* Serif to match letterhead */
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* =============== HERO / HEADER =============== */
.hero {
    position: relative;
    background: var(--white);
    color: var(--dark);
    padding: 60px 0 80px;
    text-align: center;
    border-bottom: 4px double var(--primary); /* Letterhead style double line */
}

.hero .container { position: relative; z-index: 1; }

/* Logo Placeholder - Replace with actual image */
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
}

.logo-img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.sunburst {
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--primary);
    /* Simple sunburst effect using clip-path (optional) */
    position: relative;
}

.sunburst::before {
    content: "";
    position: absolute;
    inset: -15px;
    background: repeating-conic-gradient(var(--primary) 0deg 10deg, transparent 10deg 20deg);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
}

.tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
}

.reg-no {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.address-block p {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.5;
}

.pan-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.pan-label {
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
}

.pan-value {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: var(--accent);
}

/* =============== WEBSITES SECTION =============== */
.websites {
    padding: 80px 0 90px;
    background: var(--bg);
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 48px;
    font-size: 1rem;
    font-style: italic;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.site-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 28px 28px;
    box-shadow: var(--shadow);
    border: 1px solid #e6ded4;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
}

.site-card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 0 0 var(--radius) var(--radius);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.site-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #d4c0a8;
}

.site-card:hover::after { transform: scaleX(1); }

.card-icon {
    font-size: 2.2rem;
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5ece2, #e8d9c8);
    border-radius: 16px;
    margin-bottom: 18px;
}

.site-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.35;
    font-family: 'Georgia', serif;
}

.site-card p {
    color: var(--muted);
    font-size: 0.94rem;
    flex-grow: 1;
    margin-bottom: 18px;
}

.visit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    transition: gap 0.25s ease, color 0.25s ease;
}

.site-card:hover .visit-link {
    gap: 12px;
    color: var(--accent);
}

/* =============== FOOTER =============== */
.footer {
    background: var(--primary);
    color: #e8d9c8;
    padding: 60px 0 0;
    border-top: 5px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 34px;
    padding-bottom: 44px;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.4px;
    position: relative;
    padding-bottom: 8px;
    font-family: 'Georgia', serif;
}

.footer h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer p {
    font-size: 0.94rem;
    line-height: 1.7;
}

.footer a {
    color: #e8d9c8;
    transition: color 0.2s ease;
}

.footer a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #a08b8b;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 640px) {
    .hero { padding: 40px 0 60px; }
    .websites { padding: 60px 0 70px; }
    .logo-badge { width: 70px; height: 70px; }
    .sunburst { font-size: 16px; }
    .hero h1 { font-size: 1.6rem; }
    .pan-card { padding: 10px 20px; font-size: 0.9rem; }
    .pan-value { font-size: 1rem; letter-spacing: 1.5px; }
    .address-block p { font-size: 0.85rem; }
}