@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --background: 210 40% 98%;
    --foreground: 222 47% 11%;
    --primary: 221 83% 53%; /* Modern Blue */
    --primary-foreground: 0 0% 100%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222 47% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --border: 214.3 31.8% 91.4%;
    --holiday: 0 84% 60%;
    --holiday-bg: 0 100% 97%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.max-w-5xl {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: hsl(var(--foreground));
}

.logo-us {
    background: linear-gradient(135deg, hsl(221 83% 53%), hsl(221 83% 43%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-org {
    font-size: 0.7rem;
    font-weight: 700;
    background-color: hsl(var(--foreground));
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.05em;
}

nav.main-nav {
    display: flex;
    gap: 0.5rem;
}

nav.main-nav a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

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

/* Hero Section */
.hero {
    padding: 4rem 1.5rem;
    text-align: center;
    background: radial-gradient(circle at top, hsl(221 83% 97%), transparent);
    border-radius: 24px;
    margin: 1.5rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom right, hsl(var(--foreground)), hsl(var(--muted-foreground)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    color: hsl(var(--muted-foreground));
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.85rem;
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: hsl(var(--border));
    font-weight: 300;
}

.breadcrumbs a { color: hsl(var(--muted-foreground)); }
.breadcrumbs a:hover { color: hsl(var(--primary)); }
.breadcrumbs .active { color: hsl(var(--foreground)); font-weight: 600; }

/* Main Content */
main {
    padding-bottom: 4rem;
}

h1.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.intro-text {
    font-size: 1.1rem;
    color: hsl(var(--muted-foreground));
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Calendar */
.calendar-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid hsl(var(--border));
}

table.calendar {
    width: 100%;
    border-collapse: collapse;
}

table.calendar th {
    background-color: hsl(var(--secondary));
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    border-bottom: 1px solid hsl(var(--border));
}

table.calendar td {
    border: 1px solid hsl(var(--border));
    padding: 0.75rem;
    height: 6rem;
    vertical-align: top;
    width: 14.28%;
}

.day-num { font-weight: 600; font-size: 1.1rem; color: hsl(var(--foreground)); }
.holiday-name {
    font-size: 0.7rem;
    background-color: hsl(var(--holiday-bg));
    color: hsl(var(--holiday));
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    font-weight: 600;
    display: inline-block;
}

.holiday-cell { background-color: hsla(0, 100%, 98%, 0.5); }

/* Clock Card */
.clock-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid hsl(var(--border));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.clock-label { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; color: hsl(var(--primary)); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.clock-time { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.05em; color: hsl(var(--foreground)); line-height: 1; }
.clock-date { font-size: 1.1rem; color: hsl(var(--muted-foreground)); margin-top: 0.5rem; font-weight: 500; }

/* Cards & Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid hsl(var(--border));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary) / 0.5);
}

.card-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: hsl(var(--primary)); margin-bottom: 4px; }
.card-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.card-date { font-size: 0.9rem; color: hsl(var(--muted-foreground)); margin-top: 4px; }
.card-link { display: block; margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: hsl(var(--primary)); }

/* FAQ Section */
.faq-section {
    margin-top: 5rem;
    padding: 4rem 2rem;
    background-color: white;
    border-radius: 24px;
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow);
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.03em;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: none;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 0;
    padding: 1.5rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
    font-size: 1.1rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1rem;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(221 83% 43%));
    color: white;
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px hsl(var(--primary)/ 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid hsl(var(--border));
    color: hsl(var(--foreground));
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary:hover, .btn-outline:hover { opacity: 0.9; transform: scale(1.02); }

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: hsl(var(--muted-foreground));
    font-size: 1.1rem;
}
/* Related Resources Interlinking */
.related-resources {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid hsl(var(--border));
}

.related-resources h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.related-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    font-weight: 600;
    font-size: 0.95rem;
    color: hsl(var(--foreground));
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-card:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

footer {
    background: hsl(var(--foreground));
    color: white;
    padding: 6rem 0 3rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.footer-brand { grid-column: span 1; }

footer h3 { font-size: 1rem; color: hsl(var(--primary)); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.9rem; color: #a1a1aa; }
.footer-links a:hover { color: white; }

/* Year Switcher */
.year-switcher {
    margin-bottom: 1.5rem;
}

.year-switcher .btn-outline {
    background-color: transparent;
    border-color: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.year-switcher .btn-outline:hover {
    background-color: hsl(var(--primary) / 0.05);
    border-color: hsl(var(--primary));
}

/* Tablet/Mobile refinements */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .clock-time { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .table-container { margin: 0 -1rem; }
    table.calendar td { height: 5rem; padding: 0.5rem; }
    .day-num { font-size: 0.9rem; }
    .holiday-name { font-size: 0.6rem; }
}

@media print {
    header, footer, .no-print, .action-buttons, .breadcrumbs, .ad-container { display: none !important; }
    body { background: white; color: black; }
    .max-w-5xl { max-width: 100%; padding: 0; }
    .calendar-container { border: none; box-shadow: none; }
    table.calendar th, table.calendar td { border: 1px solid #000; }
    .holiday-cell { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
