/* Modern Professional Design System for Organizational Website */

:root {
    /* Professional Color Palette */
    --primary-color: #05386b;
    --primary-dark: #042954;
    --primary-light: #064a8a;
    --secondary-color: #379683;
    --accent-color: #5cdb95;
    --accent-light: #8ee4af;
    
    /* Neutral Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #6b6b6b;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    
    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4.5rem;
    --spacing-xxl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition-base: 0.3s ease;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-4, .display-5, .display-7 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.display-2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-5 {
    font-size: 1.5rem;
    font-weight: 600;
}

.display-7 {
    font-size: 1rem;
    font-weight: 400;
}

p, .mbr-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* Navigation - Modern Styling */
.navbar {
    background-color: var(--bg-white) !important;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-base);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xs) 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.navbar-logo img {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
}

.navbar-caption {
    color: var(--primary-color) !important;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color) !important;
    background-color: var(--bg-light);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    margin-top: var(--spacing-xs);
    min-width: 200px;
}

.dropdown-item {
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    font-weight: 400;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-light);
    color: var(--primary-color) !important;
}

/* Header/Hero Section */
.header1 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.header1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header1 .container {
    position: relative;
    z-index: 1;
}

.header1 .mbr-section-title {
    color: var(--bg-white);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.header1 .mbr-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.mbr-overlay {
    opacity: 0.1 !important;
}

/* Section Styling */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

/* Content Sections */
.content-wrapper,
.text-wrapper {
    padding: var(--spacing-md) 0;
}

.image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-base);
}

.image-wrapper:hover img {
    transform: scale(1.02);
}

/* Card Styling */
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-box {
    padding: var(--spacing-md) 0;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.card-subtitle {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

/* Features Section */
.features15,
.features8 {
    background-color: var(--bg-white);
}

.features15 .content-wrapper,
.features8 .content-wrapper {
    padding: var(--spacing-lg) 0;
}

/* Contact Section */
.contacts3 {
    background-color: var(--bg-light);
}

.contacts3 .card {
    background-color: var(--bg-white);
    border: none;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.contacts3 .card-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contacts3 .image-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.contacts3 .mbr-iconfont {
    color: var(--bg-white) !important;
    font-size: 1.5rem;
}

.contacts3 .text-wrapper {
    flex: 1;
}

.contacts3 .card-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.contacts3 .mbr-text {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Map Styling */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Footer */
.footer3 {
    background-color: var(--text-primary);
    color: var(--bg-white);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer3 .mbr-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Team/Members Section */
.team2 .item-wrapper {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.team2 .item-wrapper:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.team2 .image-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
}

.team2 .image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.team2 .card-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.team2 .card-subtitle {
    color: var(--primary-color);
    font-weight: 600;
}

/* Table Styling for Members */
.team2 table {
    width: 100%;
    background-color: var(--bg-white);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.team2 thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
}

.team2 thead th {
    padding: var(--spacing-md);
    font-weight: 600;
    text-align: left;
    border: none;
    color: var(--bg-white);
}

.team2 tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-base);
}

.team2 tbody tr:hover {
    background-color: var(--bg-light);
}

.team2 tbody td {
    padding: var(--spacing-md);
    vertical-align: middle;
    border: none;
}

.team2 tbody td img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
}

.team2 tbody td strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Red Text for Quotes */
.red-text {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Utility Classes */
.text-primary-color {
    color: var(--primary-color) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.shadow-elegant {
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 991px) {
    .header1 .mbr-section-title {
        font-size: 2rem;
    }
    
    .display-2 {
        font-size: 2rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .navbar-caption {
        font-size: 0.85rem;
    }
    
    .navbar-logo img {
        height: 2.5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }
    
    .header1 {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .header1 .mbr-section-title {
        font-size: 1.75rem;
    }
    
    .display-2 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .contacts3 .card-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .contacts3 .image-wrapper {
        margin: 0 auto;
    }
    
    .map-wrapper {
        height: 300px;
        margin-top: var(--spacing-md);
    }
    
    .team2 table {
        font-size: 0.9rem;
    }
    
    .team2 thead th,
    .team2 tbody td {
        padding: var(--spacing-sm);
    }
    
    .team2 tbody td img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 575px) {
    .navbar-caption {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .team2 table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Accessibility Improvements */
a:focus,
button:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer3,
    .mbr-overlay {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   HERO CAROUSEL SECTION
   ============================================ */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    padding: 0;
}

#heroCarousel {
    height: 100%;
}

#heroCarousel .carousel-inner {
    height: 100%;
}

#heroCarousel .carousel-item {
    height: 100%;
    position: relative;
    transition: opacity 0.6s ease-in-out;
}

#heroCarousel .carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

#heroCarousel .carousel-fade .carousel-item.active,
#heroCarousel .carousel-fade .carousel-item-next.carousel-item-start,
#heroCarousel .carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

#heroCarousel .carousel-fade .active.carousel-item-start,
#heroCarousel .carousel-fade .active.carousel-item-end {
    opacity: 0;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 56, 107, 0.75) 0%, rgba(4, 41, 84, 0.85) 100%);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    padding: var(--spacing-lg);
}

.hero-title {
    color: var(--bg-white);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    display: block;
    font-size: 2.5rem;
    margin-top: var(--spacing-sm);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.8;
    transition: all var(--transition-base);
    backdrop-filter: blur(5px);
}

#heroCarousel .carousel-control-prev {
    left: 2rem;
}

#heroCarousel .carousel-control-next {
    right: 2rem;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel Indicators */
#heroCarousel .carousel-indicators {
    bottom: 2rem;
    margin-bottom: 0;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 6px;
    transition: all var(--transition-base);
}

#heroCarousel .carousel-indicators button.active {
    background-color: var(--bg-white);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   MESSAGES SECTION
   ============================================ */
.messages-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xxl) 0;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.message-card {
    margin-bottom: var(--spacing-xl);
}

.message-card .card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    background-color: var(--bg-white);
}

.message-card .card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.message-card .card-body {
    padding: var(--spacing-lg);
}

.message-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-author-info {
    text-align: center;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0;
}

.message-content {
    padding-left: var(--spacing-md);
}

.message-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--primary-color);
}

.message-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.message-quote {
    background: linear-gradient(135deg, rgba(5, 56, 107, 0.05) 0%, rgba(5, 56, 107, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
    font-style: italic;
}

.quote-text {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.8;
    display: block;
}

.message-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.message-signature {
    text-align: right;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   HEADER/NAVBAR IMPROVEMENTS
   ============================================ */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 4rem;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

.navbar-caption-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar-caption {
    text-decoration: none !important;
    line-height: 1.4;
}

.org-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.college-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* Responsive adjustments for hero carousel */
@media (max-width: 991px) {
    .hero-carousel-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title span {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    #heroCarousel .carousel-control-prev {
        left: 1rem;
    }
    
    #heroCarousel .carousel-control-next {
        right: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .message-content {
        padding-left: 0;
        margin-top: var(--spacing-md);
    }
    
    .message-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .hero-carousel-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-title span {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .carousel-caption {
        padding: var(--spacing-md);
    }
    
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #heroCarousel .carousel-control-prev {
        left: 0.5rem;
    }
    
    #heroCarousel .carousel-control-next {
        right: 0.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .message-image-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .message-title {
        font-size: 1.5rem;
    }
    
    .message-text {
        font-size: 0.95rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .navbar-logo img {
        height: 3rem;
    }
    
    .org-name {
        font-size: 0.8rem;
    }
    
    .college-name {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .hero-carousel-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-title span {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    #heroCarousel .carousel-indicators {
        bottom: 1rem;
    }
}

