/* Base Styles */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #4d94ff;
    --secondary-color: #2ecc71;
    --accent-color: #f39c12;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --font-main: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', 'Roboto', sans-serif;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
    padding-left: 1rem;
}

button, .btn {
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    background-color: var(--bg-light);
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: normal;
    text-align: right;
    color: var(--text-light);
}

/* Header */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.05);
}

nav i {
    margin-right: 0.5rem;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    text-align: center;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.hero h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Future Quote Section */
.future-quote {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0;
    margin: 3rem 0;
}

.future-quote h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.future-quote blockquote {
    border-left-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.future-quote blockquote cite {
    color: rgba(255, 255, 255, 0.7);
}

/* Admin Preview Section */
.admin-preview {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.admin-preview h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: #f7f9fc;
    background-image: url('images/admin-panel.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Blog Posts Section */
.blog-posts {
    padding: 3rem 0;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--bg-color);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--primary-color);
}

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* About Page */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.page-header h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.about-intro {
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text h3 {
    margin-top: 1.5rem;
}

.about-text ul {
    margin-bottom: 1.5rem;
}

.team-section {
    background-color: var(--bg-light);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-card h3 {
    margin-bottom: 0.25rem;
}

.team-card p {
    color: var(--text-light);
}

.team-card p:first-of-type {
    font-weight: 600;
    color: var(--primary-color);
}

.achievements {
    padding: 3rem 0;
}

.achievements h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.achievement-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
}

.achievement-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-section {
    padding-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3, .contact-form-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 2rem;
    text-align: center;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.social-contact h4 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

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

.social-icons a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--text-light);
}

.btn-tertiary:hover {
    color: var(--text-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    display: block;
}

.modal-body h3 {
    margin-bottom: 1rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
}

/* Blog Post Page */
.blog-post {
    padding: 2rem 0 4rem;
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-content {
    margin-bottom: 2rem;
}

.post-content h2 {
    margin-top: 2rem;
}

.post-content h3 {
    margin-top: 1.5rem;
}

.post-content p, .post-content ul, .post-content ol {
    margin-bottom: 1.25rem;
}

.post-content ul li, .post-content ol li {
    margin-bottom: 0.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.post-tags span {
    margin-right: 0.5rem;
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--primary-light);
    color: white;
}

.post-share {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.post-share span {
    margin-right: 1rem;
    font-weight: 600;
}

.post-share a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.post-share a:hover {
    transform: translateY(-3px);
    background-color: var(--primary-dark);
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-prev, .post-next {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.post-prev:hover, .post-next:hover {
    box-shadow: var(--box-shadow);
}

.post-prev span, .post-next span {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-next {
    text-align: right;
}

.related-posts {
    background-color: var(--bg-light);
    padding: 3rem 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.8;
}

.footer-links h3, .footer-legal h3, .footer-contact h3, .footer-about h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-legal li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.footer-contact i {
    margin-right: 0.75rem;
    min-width: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Notice */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.97);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-buttons button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.cookie-more {
    color: var(--primary-light);
    font-size: 0.9rem;
    text-decoration: underline;
}

.cookie-more:hover {
    color: white;
}

/* Icons (Custom CSS for icon fonts) */
[class^="icon-"], [class*=" icon-"] {
    display: inline-block;
    font-size: 1.25em;
    line-height: 1;
}

.icon-home::before { content: "🏠"; }
.icon-info::before { content: "ℹ️"; }
.icon-mail::before { content: "✉️"; }
.icon-calendar::before { content: "📅"; }
.icon-user::before { content: "👤"; }
.icon-folder::before { content: "📁"; }
.icon-location::before { content: "📍"; }
.icon-phone::before { content: "📞"; }
.icon-clock::before { content: "🕒"; }
.icon-arrow-right::before { content: "→"; }
.icon-check-circle::before { content: "✓"; }
.icon-users::before { content: "👥"; }
.icon-book::before { content: "📚"; }
.icon-award::before { content: "🏆"; }
.icon-handshake::before { content: "🤝"; }

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 1rem;
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav li {
        margin: 0 1rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-next {
        text-align: left;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-social {
        margin-top: 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav li {
        margin: 0.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}
