/* ========================================
   UNIFIED STYLESHEET
   Baba Deep Singh Ji Advance Pathology Laboratory
   ======================================== */

/* === GLOBAL RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BASE STYLES === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* === HEADER STYLES === */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #E8F1FB;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(10, 45, 100, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.logo-section img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0A2D64, #1C4FA1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
}

.lab-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0A2D64;
    line-height: 1.3;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #0A2D64;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #1C4FA1;
}

nav a.active {
    color: #1C4FA1;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1C4FA1;
}

/* === PAGE HEADER/HERO SECTION === */
.page-header,
.page-title-section {
    background: linear-gradient(135deg, #E8F1FB 0%, #D9E3F7 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.page-header-content,
.page-title-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-header h1,
.page-title-section h1 {
    font-size: 2.5rem;
    color: #0A2D64;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.page-header p,
.page-title-section p {
    font-size: 1.15rem;
    color: #1C4FA1;
    font-weight: 500;
}

/* === FOOTER STYLES === */
footer {
    background-color: #0A2D64;
    color: white;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-column strong {
    opacity: 1;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

.footer-column ul li a:hover {
    opacity: 1;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-section img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.footer-partnership {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* === FORM STYLES === */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0A2D64;
    margin-bottom: 0.5rem;
}

input,
select,
textarea {
    padding: 0.85rem;
    font-size: 0.95rem;
    border: 1px solid #D9E3F7;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1C4FA1;
    box-shadow: 0 0 0 3px rgba(28, 79, 161, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* === BUTTONS === */
.submit-button,
.btn-primary {
    background: #0A2D64;
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(10, 45, 100, 0.2);
}

.submit-button:hover,
.btn-primary:hover {
    background: #1C4FA1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 45, 100, 0.3);
}

.submit-button:active,
.btn-primary:active {
    transform: translateY(0);
}

/* === CARDS === */
.card {
    background-color: #ffffff;
    border: 1px solid #E8F1FB;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(10, 45, 100, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #1C4FA1;
    box-shadow: 0 8px 20px rgba(10, 45, 100, 0.15);
    transform: translateY(-4px);
}

/* === SECTION STYLES === */
.section-title {
    font-size: 2rem;
    color: #0A2D64;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

/* === RESPONSIVE DESIGN === */

/* Tablets and below */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    nav a.active::after {
        bottom: -4px;
    }

    .page-header,
    .page-title-section {
        padding: 3rem 1.5rem;
    }

    .page-header h1,
    .page-title-section h1 {
        font-size: 2rem;
    }

    .page-header p,
    .page-title-section p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo-section {
        justify-content: center;
    }

    .footer-column ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer {
        padding: 2rem 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .logo-section {
        gap: 0.5rem;
    }

    .lab-name {
        font-size: 0.95rem;
    }

    .logo-section img,
    .logo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    .page-header h1,
    .page-title-section h1 {
        font-size: 1.6rem;
    }

    .page-header p,
    .page-title-section p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    input,
    select,
    textarea {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .submit-button,
    .btn-primary {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
