﻿/* ========================================
   GLOBAL STYLES
   Used across all pages
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;500;600;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #555;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover {
        color: #8B0000;
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
}

/* Container Adjustments */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.fw-bold {
    font-weight: 700;
}

.fw-600 {
    font-weight: 600;
}

.text-muted {
    color: #999;
}

/* Margin & Padding Utilities */
.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

/* Display Utilities */
.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.flex-grow-1 {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

/* Visibility */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #8B0000;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    a {
        text-decoration: underline;
    }

    button {
        display: none;
    }
}

/* Selection Styles */
::selection {
    background-color: #8B0000;
    color: white;
}

::-moz-selection {
    background-color: #8B0000;
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B0000;
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #A52A2A;
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B0000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Form Styles */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

    .form-control:focus {
        border-color: #8B0000;
        box-shadow: 0 0 5px rgba(139, 0, 0, 0.3);
    }

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-primary {
    background-color: #8B0000;
    color: white;
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #8B0000;
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Media Queries - Responsive */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    h6 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mt-4 {
        margin-top: 1rem !important;
    }

    .p-4 {
        padding: 1rem !important;
    }
}

/* Photo Gallery - Responsive */
.gallery-card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

.fixed-album-cover {
    height: 220px;
    object-fit: cover;
}

.gallery-photo {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.album-thumb {
    width: 100%;
    height: 230px; /* Fixed height thumbnail */
    overflow: hidden;
    border-radius: 10px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .album-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s ease;
        border-radius: 10px;
    }

.album-tile:hover img {
    transform: scale(1.06);
}

.album-tile:hover h5 {
    color: #8B0000;
}
.gallery-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
}

/* Contact - Responsive */
.inner-banner {
    background: var(--primary-maroon);
    height: 250px;
}

.contact-info-card i {
    font-size: 20px;
    margin-right: 8px;
}

.contact-section {
    background-color: #fafafa;
}

.contact-form input, .contact-form textarea {
    border: 1px solid #ccc;
    border-radius: 6px;
}

    .contact-form input:focus, .contact-form textarea:focus {
        border-color: #8B0000;
        box-shadow: 0 0 4px rgba(139, 0, 0, 0.4);
    }

.hero-section {
    background: Maroon;
    color: white;
    padding: 80px 0;
    text-align: center;
}