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

:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: #fff;
}

html {
    scroll-behavior: smooth;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-text);
}

h2 {
    font-size: 2.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== NAVBAR ==================== */
.navbar {
    background-color: white !important;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    line-height: 1.3;
}

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

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    text-align: center;
}

.navbar-nav .nav-link {
    margin-left: 0.5rem;
    color: var(--dark-text) !important;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

/* ==================== HERO BANNER SECTION ==================== */
.hero-banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 60, 114, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 350px;
        height: auto;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ==================== WELCOME SECTION ==================== */
.welcome-section {
    padding-top: 5rem;
    padding-right: 0;
    padding-bottom: 0rem;
    padding-left: 0;
    background-color: #fff;
}

.welcome-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.welcome-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.welcome-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Leadership Cards */
.leadership-card {
    background-color: #f8f9fa;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

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

.leadership-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.leadership-card h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ==================== QUICK FACTS SECTION ==================== */
.quick-facts {
    padding: 5rem 0;
}

.stat-card {
    padding: 2rem 1rem;
    transition: var(--transition);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 600;
}

.stat-card:hover .stat-number {
    color: var(--secondary-color);
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
    padding: 5rem 0;
    background-color: #fff;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
}

.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.service-card-link:hover .service-card {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    transition: var(--transition);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card-link:hover .service-icon {
    color: var(--accent-color);
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-arrow {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-card-link:hover .service-arrow {
    color: var(--accent-color);
}

/* ==================== FEATURED ASSIGNMENTS SECTION ==================== */
.featured-assignments {
    padding: 5rem 0;
}

.assignment-card-link {
    text-decoration: none;
    color: inherit;
}

.assignment-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.assignment-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.assignment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.assignment-card:hover .assignment-image img {
    transform: scale(1.05);
}

.assignment-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.assignment-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* ==================== PUBLICATIONS SECTION ==================== */
.publications-section {
    padding: 5rem 0;
    background-color: #fff;
}

.publication-card-link {
    text-decoration: none;
    color: inherit;
}

.publication-card {
    background-color: #f8f9fa;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.publication-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-6px);
    background-color: white;
}

.publication-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.publication-card:hover .publication-icon {
    color: var(--accent-color);
    transform: scale(1.15);
}

.publication-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.publication-card:hover .publication-link {
    color: var(--accent-color);
}

/* ==================== FOOTER SECTION ==================== */
.footer-section {
    background-color: #1a1a1a;
    padding-top: 3rem;
    padding-bottom: 0;
    /* margin-top: 5rem; */
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
}

.footer-section h6 {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-section p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.8;
}

.visitor-counter-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 40px;
}

.visitor-counter-loading {
    width: auto;
    padding: 0 0.75rem;
    min-width: 80px;
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-section a {
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color) !important;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.location-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.location-map img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.social-icons a {
    display: flex;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* ==================== UTILITY CLASSES ==================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary-light {
    background-color: rgba(30, 60, 114, 0.05);
}

.border-accent {
    border-color: var(--accent-color) !important;
}

/* ==================== CORE VALUES SECTION ==================== */
.core-values-section {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.value-badge {
    background-color: transparent;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: none;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.value-badge:hover {
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.15);
    transform: translateY(-3px);
    background-color: rgba(30, 60, 114, 0.05);
}

.value-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    min-width: 2.5rem;
    text-align: center;
}

.value-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Scroll padding for sticky navbar */
html {
    scroll-padding-top: 80px;
}

.mobile-text {
  display: none;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link::after {
        bottom: 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .publication-card,
    .leadership-card,
    .service-card {
        margin-bottom: 1.5rem;
    }

    .footer-section {
        padding-top: 2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-banner {
        min-height: 280px;
        height: auto;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .brand-text {
        font-size: 1rem;
    }

    .navbar-logo {
        height: 30px;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .publication-card {
        padding: 2rem 1rem;
    }

    .leadership-img {
        width: 120px;
        height: 120px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ==================== RECENT PROJECTS SECTION ==================== */
.recent-projects {
    padding: 5rem 0;
    background-color: #fff;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-name {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Wide project card for full-width (7th project) */
.project-card-wide {
    flex-direction: row;
    align-items: stretch;
}

.project-card-wide .project-image {
    width: 40%;
    height: auto;
    min-height: 220px;
    flex-shrink: 0;
}

.project-card-wide .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card-wide .project-content {
    width: 60%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .project-card-wide {
        flex-direction: column;
    }

    .project-card-wide .project-image,
    .project-card-wide .project-content {
        width: 100%;
    }

    .project-card-wide .project-image {
        height: 200px;
    }
}

/* Reduce extra vertical spacing on very large screens */
@media (min-width: 1200px) {
    /* .project-card-wide {
        align-items: flex-start;
    }

    .project-card-wide .project-content {
        justify-content: flex-start;
        padding: 1.25rem 2rem;
    }
 */
    .project-card-wide .project-image {
        min-height: 260px;
        max-height: 260px;
        height: 100%;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .hero-banner,
    .footer-section {
        display: none;
    }

    body {
        background-color: white;
    }

    .section-title {
        page-break-after: avoid;
    }
}
