/* Colour Palette */
:root {
    --gold-primary: #AD9550;
    --soft-bg: #E6EBF5;
    --deep-red: #780425;
    --azure: #007FFF;
    --white: #FFFFFF;
    --black: #000000;
    --grey-dark: #333333;
    --grey-mid: #555555;
    --grey-light: #DDDDDD;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--grey-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--black);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--grey-dark);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* Navbar Enhancements */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--grey-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 500;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    transition: var(--transition);
    text-decoration: none;
}


.navbar-brand span {
    color: var(--gold-primary);
}

.nav-link {
    color: var(--grey-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--gold-primary) !important;
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--gold-primary);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 4px;
    }
    
    .nav-link:hover {
        background-color: var(--soft-bg);
    }
}

/* Logo */
.navbar-brand img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}


@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 35px;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    height: auto;
    background-image: url('../images/geminis.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    padding: 3rem 1rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    color: var(--white);
    font-size: clamp(1rem, 3vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 70vh;
    }
}

/* Container Enhancements */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Section Spacing */
section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

@media (min-width: 992px) {
    section {
        padding: 5rem 0;
    }
}

/* Cards Enhancement */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

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

.card-body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .card-body {
        padding: 2rem;
    }
}

.card-title {
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* Accordion Enhancements */
.accordion {
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border: 1px solid var(--grey-light);
    margin-bottom: 0.75rem;
    border-radius: 8px !important;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 500;
    color: var(--grey-dark);
    background-color: var(--white);
    padding: 1rem 1.25rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background-color: var(--gold-primary);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:hover {
    background-color: var(--soft-bg);
}

.accordion-button:not(.collapsed):hover {
    background-color: var(--deep-red);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(173, 149, 80, 0.25);
    border-color: var(--gold-primary);
}

.accordion-button::after {
    transition: var(--transition);
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--white);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .accordion-button {
        padding: 0.875rem 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* Alert Enhancements */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@media (max-width: 768px) {
    .alert {
        padding: 0.875rem 1rem;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--deep-red);
    border-color: var(--deep-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--azure);
    border-color: var(--azure);
    color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #0066cc;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .btn {
        padding: 0.625rem 1.25rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* List Styling */
ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Links */
a {
    transition: var(--transition);
    text-decoration: none;
}

a:not(.btn):not(.nav-link) {
    color: var(--azure);
    text-decoration: none;
}

a:not(.btn):not(.nav-link):hover {
    color: var(--deep-red);
    text-decoration: none;
}

/* Row Spacing */
.row {
    margin-bottom: 2rem;
}

.row:last-child {
    margin-bottom: 0;
}

/* Column Padding for Mobile */
@media (max-width: 767px) {
    .col-md-6,
    .col-lg-4,
    .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Footer */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--grey-light);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

footer h5 {
    color: var(--gold-primary);
    font-weight: 500;
    margin-bottom: 1.25rem;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

footer p,
footer a {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

footer a {
    color: var(--grey-dark);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

footer a:hover {
    color: var(--deep-red);
    transform: translateX(5px);
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid var(--grey-light);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom p {
    color: var(--grey-mid);
    margin-bottom: 0;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

@media (max-width: 768px) {
    footer {
        text-align: center;
        padding: 2rem 0 1rem;
    }
    
    footer .col-md-3,
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Text Utilities */
.text-primary {
    color: var(--gold-primary) !important;
}

.text-dark {
    color: var(--grey-dark) !important;
}

.text-muted {
    color: var(--grey-mid) !important;
}

/* Background Utilities */
.bg-light {
    background-color: var(--soft-bg) !important;
}

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

/* Accent Utilities */
.accent-red {
    background-color: var(--deep-red);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
}

.accent-gold {
    background-color: var(--gold-primary);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
}

.accent-azure {
    background-color: var(--azure);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
}

/* Table Responsive */
.table-responsive {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

table {
    margin-bottom: 0;
}

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Focus States for Accessibility */
*:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

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

/* Print Styles */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
    
    body {
        background-color: var(--white);
        color: var(--black);
    }
    
    .hero-section {
        background-image: none;
        min-height: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        background-color: var(--white);
    }
    
    .card {
        border: 2px solid var(--grey-dark);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Selection Styling */
::selection {
    background-color: var(--gold-primary);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--gold-primary);
    color: var(--white);
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--soft-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-red);
}