/* Base Styles */
:root {
    --primary-color: #3a71b0;
    --primary-dark: #285f9c;
    --secondary-color: #f0a04b;
    --secondary-dark: #e88c1e;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --background-alt: #f7f9fc;
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FFC107;
    --font-main: 'Roboto', 'Arial', sans-serif;
    --font-heading: 'Montserrat', 'Arial', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition-default: all 0.3s ease;
    --container-width: 1200px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    font-weight: 700;
}

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

/* Header Styles */
header {
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.logo img {
    max-height: 50px;
    width: auto;
}

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

#main-nav li {
    margin: 0 0 0 1.5rem;
}

#main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

#main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-default);
}

#main-nav a:hover::after,
#main-nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition-default);
}

/* Font Size Control */
.font-size-control {
    margin-left: 1rem;
}

.font-size-control button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-default);
}

.font-size-control button:hover {
    background-color: var(--background-alt);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

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

.page-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

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

/* Main Content Layout */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

main section {
    flex: 1;
    min-width: 0;
}

main aside {
    width: 300px;
    flex-shrink: 0;
}

/* Blog Post Cards */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post {
    display: flex;
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-default);
}

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

.post-image {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.post-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.post-content h2 a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.read-more {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition-default);
}

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

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.widget h3 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0.75rem;
}

.widget ul li:last-child {
    margin-bottom: 0;
}

.admin-frame {
    width: 100%;
    height: 200px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    max-width: 120px;
    margin-bottom: 1rem;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1;
    min-width: 200px;
}

footer h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-default);
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

footer address {
    font-style: normal;
    line-height: 1.8;
}

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

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

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

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

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

.cookie-policy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    margin-top: 0.5rem;
    display: block;
    width: 100%;
}

.cookie-policy-link:hover {
    color: white;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
}

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

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Blog Post Page Styles */
.blog-post {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

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

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.post-intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

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

.post-content li {
    margin-bottom: 0.75rem;
}

.post-tags, .post-share {
    margin-top: 2rem;
}

.post-tags h4, .post-share h4 {
    margin-bottom: 0.5rem;
}

.post-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-tags li a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--background-alt);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 0.875rem;
    transition: var(--transition-default);
}

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

.post-share .social-icons a {
    background-color: var(--background-alt);
    color: var(--text-color);
}

.post-share .social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-author {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    background-color: var(--background-alt);
    padding: 1.5rem;
    border-radius: 8px;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.author-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.author-info p {
    margin-bottom: 1rem;
}

.related-posts {
    margin-top: 3rem;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
}

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

.related-post {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-default);
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.related-post h4 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1rem;
    margin: 0;
}

.related-post .date {
    padding: 0 1rem 1rem;
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* About Page Styles */
.about-section {
    max-width: 900px;
    margin: 0 auto;
}

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

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.team-title {
    text-align: center;
    margin-bottom: 2rem;
}

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

.team-card {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-default);
}

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

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

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

.team-card p {
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.team-card p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 500;
}

.team-card .social-icons {
    justify-content: center;
    margin: 1rem 0;
}

.team-card .social-icons a {
    background-color: var(--background-alt);
    color: var(--text-color);
}

.about-achievements {
    margin-top: 3rem;
}

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

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

.achievement-card {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-default);
}

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

.achievement-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.achievement-card p {
    margin-bottom: 0;
}

/* Contact Page Styles */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-content h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.social-media-contact {
    margin-top: 2rem;
}

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

.social-media-contact .social-icons a {
    background-color: var(--background-alt);
    color: var(--text-color);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

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

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 113, 176, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

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

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
}

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

.admin-panel-section {
    margin-top: 3rem;
    max-width: 1100px;
    margin: 3rem auto;
}

.admin-panel-section h2 {
    margin-bottom: 1.5rem;
}

.admin-panel-section .admin-frame {
    height: 300px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: auto;
}

.modal-content {
    background-color: var(--background-color);
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

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

.close-modal:hover {
    color: var(--text-color);
}

.thank-you-container {
    text-align: center;
}

.thank-you-container svg {
    margin-bottom: 1.5rem;
}

.thank-you-container h2 {
    margin-bottom: 1rem;
}

.thank-you-container p {
    margin-bottom: 1.5rem;
}

/* Tax Table Styles */
.tax-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.tax-table th, .tax-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.tax-table th {
    background-color: var(--background-alt);
    font-weight: 600;
}

.tax-table tr:nth-child(even) {
    background-color: var(--background-alt);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .post {
        flex-direction: column;
    }
    
    .post-image {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    main aside {
        width: 100%;
    }
    
    .footer-content > div {
        flex: 0 0 100%;
    }
    
    .footer-links, .footer-contact, .footer-social {
        margin-top: 2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    #main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        display: none;
    }
    
    #main-nav.active {
        display: block;
    }
    
    #main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    #main-nav li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    #main-nav li:last-child {
        border-bottom: none;
    }
    
    #main-nav a {
        display: block;
        padding: 1rem 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .post-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-image {
        margin-bottom: 1rem;
    }
    
    .author-info .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .team-container, .achievements-container {
        grid-template-columns: 1fr;
    }
}
