/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #313379;
    --primary-dark: #25295D;
    --text-gray: #4B5563;
    --text-gray-light: #6B7280;
    --bg-gray: #F9FAFB;
    --bg-gray-dark: #111827;
    --border-gray: #E5E7EB;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--white);
    color: #171717;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #1F2937;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Colors */
.text-white {
    color: var(--white) !important;
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white p,
.text-white a:not(.btn-white) {
    color: var(--white) !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary a:not(.btn-white) {
    color: var(--white) !important;
}

.text-gray-600 {
    color: var(--text-gray-light);
}

.text-gray-700 {
    color: var(--text-gray);
}

.text-gray-800 {
    color: #1F2937;
}

.text-primary {
    color: var(--primary-color);
}

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

.bg-gray-50 {
    background-color: var(--bg-gray);
}

.bg-gray-900 {
    background-color: var(--bg-gray-dark);
}

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

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

/* Spacing */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-20 {
    margin-top: 5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

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

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Positioning */
.relative {
    position: relative;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.top-24 {
    top: 6rem;
}

.z-50 {
    z-index: 50;
}

/* Sizing */
.w-full {
    width: 100%;
}

.w-4 {
    width: 1rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.h-4 {
    height: 1rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-4 {
    border-width: 4px;
}

.border-gray-200 {
    border-color: var(--border-gray);
}

.border-gray-300 {
    border-color: #D1D5DB;
}

.border-white {
    border-color: var(--white);
}

.border-primary {
    border-color: var(--primary-color);
}

.border-l-4 {
    border-left-width: 4px;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Shadows */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Backgrounds */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

.bg-gradient-to-r.from-\[#313379\].to-\[#25295D\] {
    background-image: linear-gradient(to right, #313379, #25295D);
}

.bg-primary-10 {
    background-color: rgba(49, 51, 121, 0.1);
}

/* Buttons and Links */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

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

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

.btn-white:hover {
    background-color: #F3F4F6;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

nav {
    padding: 1rem;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-gray);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: block;
    color: var(--text-gray);
}

.mobile-menu {
    display: none;
    margin-top: 1rem;
    padding-bottom: 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-gray);
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

/* Logo */
.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 0.75rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 5rem 0;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.hero p,
.hero a:not(.btn-white) {
    color: var(--white) !important;
}

.hero h1 {
    color: var(--white) !important;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Cards */
.card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray-light);
}

.breadcrumbs a {
    color: var(--text-gray-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: #1F2937;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--bg-gray-dark);
    color: var(--white);
    margin-top: 5rem;
    padding: 3rem 0;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: #9CA3AF;
}

.footer-section a:hover {
    color: var(--white);
}

/* Footer responsive improvements */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

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

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

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

/* Responsive */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }

    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-6>*+* {
    margin-left: 1.5rem;
}

.leading-tight {
    line-height: 1.25;
}

.object-contain {
    object-fit: contain;
}

.overflow-x-auto {
    overflow-x: auto;
}

.text-blue-100 {
    color: #DBEAFE;
}

.text-green-500 {
    color: #10B981;
}

.bg-green-500 {
    background-color: #10B981;
}

.bg-green-500:hover {
    background-color: #059669;
}

.bg-blue-50 {
    background-color: #EFF6FF;
}

.bg-blue-100 {
    background-color: #DBEAFE;
}

.transition {
    transition: all 0.3s ease;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid #D1D5DB;
    padding: 0.75rem;
    text-align: left;
}

table thead tr {
    background-color: #DBEAFE;
}

table tbody tr:nth-child(even) {
    background-color: var(--bg-gray);
}

/* List */
ul.list-disc {
    list-style-type: disc;
    padding-left: 1.5rem;
}

ol.list-decimal {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

/* Announcements Section */
.announcements-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.announcement-link {
    text-decoration: none;
    display: block;
}

.announcement-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.announcement-link h4 {
    transition: color 0.3s ease;
}

.announcement-link:hover h4 {
    color: var(--primary-color);
}

/* Responsive adjustments for announcements sidebar */
.announcements-sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .announcements-sidebar {
        width: 130%;
    }
}

/* Footer responsive improvements */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

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

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

/* Logo responsive improvements */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.logo-text {
    display: block;
    min-width: 0;
}

.logo-text h3 {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text p {
    color: var(--text-gray-light);
    font-size: 0.65rem;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .logo-text h3 {
        font-size: 1.25rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }
}

/* Mobile menu improvements */
@media (max-width: 767px) {
    .mobile-menu {
        width: 100%;
    }

    .mobile-menu a {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
}

/* Email break fix */
.break-all {
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* WhatsApp Button Styles */
.whatsapp-button {
    min-height: 3.5rem;
    letter-spacing: 0.025em;
}

.whatsapp-button svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .whatsapp-button {
        min-height: 4rem;
    }
}

.whatsapp-button:active {
    transform: scale(0.98);
}