/* Main Stylesheet */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --font-primary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info span {
    margin-right: 20px;
}

.top-bar-info i {
    margin-right: 5px;
}

.social-links a {
    color: white;
    margin-left: 15px;
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--accent-color);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Mission Section */
.mission-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.mission-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.mission-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.mission-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-color);
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Newsletter */
.newsletter-section {
    background: var(--light-color);
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Content HTML Styles - For CKEditor Content */
.content-html {
    line-height: 1.8;
}

.content-html h1,
.content-html h2,
.content-html h3,
.content-html h4,
.content-html h5,
.content-html h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}

.content-html h1 { font-size: 2.5rem; }
.content-html h2 { font-size: 2rem; }
.content-html h3 { font-size: 1.75rem; }
.content-html h4 { font-size: 1.5rem; }
.content-html h5 { font-size: 1.25rem; }
.content-html h6 { font-size: 1.1rem; }

.content-html p {
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.content-html ul,
.content-html ol {
    margin-bottom: 1.25em;
    padding-left: 2em;
}

.content-html ul li,
.content-html ol li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.content-html ul {
    list-style-type: disc;
}

.content-html ol {
    list-style-type: decimal;
}

.content-html blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--text-color);
}

.content-html strong,
.content-html b {
    font-weight: 600;
    color: var(--dark-color);
}

.content-html em,
.content-html i {
    font-style: italic;
}

.content-html a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.content-html a:hover {
    color: var(--primary-color);
}

.content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-html table th,
.content-html table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.content-html table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.content-html table tr:nth-child(even) {
    background: var(--light-color);
}

.content-html code {
    background: var(--light-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--danger-color);
}

.content-html pre {
    background: var(--dark-color);
    color: #f3f4f6;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.content-html pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.content-html hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2em 0;
}

/* Responsive content HTML */
@media (max-width: 768px) {
    .content-html h1 { font-size: 2rem; }
    .content-html h2 { font-size: 1.75rem; }
    .content-html h3 { font-size: 1.5rem; }
    .content-html h4 { font-size: 1.25rem; }
    
    .content-html table {
        font-size: 0.9rem;
    }
    
    .content-html table th,
    .content-html table td {
        padding: 8px 10px;
    }
}

/* Lightbox2 Custom Styling */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease !important;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    background: rgba(30, 58, 138, 0.9) !important;
    opacity: 1 !important;
}

.lb-nav a.lb-prev {
    left: 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

.lb-nav a.lb-next {
    right: 0 !important;
    border-radius: 8px 0 0 8px !important;
}

/* Lightbox arrows - make them more visible */
.lb-prev::before,
.lb-next::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.lb-prev::before {
    left: 20px;
    border-width: 25px 35px 25px 0;
    border-color: transparent white transparent transparent;
}

.lb-next::before {
    right: 20px;
    border-width: 25px 0 25px 35px;
    border-color: transparent transparent transparent white;
}

/* Lightbox counter styling */
.lb-dataContainer {
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
}

.lb-data .lb-number {
    color: #f59e0b !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.lb-data .lb-caption {
    color: white !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

.lb-data .lb-close {
    background: rgba(239, 68, 68, 0.9) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    transition: all 0.3s ease !important;
}

.lb-data .lb-close:hover {
    background: rgba(239, 68, 68, 1) !important;
    transform: rotate(90deg) !important;
}

/* Mobile lightbox optimization */
@media (max-width: 768px) {
    .lb-nav a.lb-prev::before {
        left: 10px;
        border-width: 20px 25px 20px 0;
    }
    
    .lb-nav a.lb-next::before {
        right: 10px;
        border-width: 20px 0 20px 25px;
    }
    
    .lb-data .lb-number {
        font-size: 12px !important;
    }
}
