/* General Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #ff7700;
    --secondary-color: #002663;
    --accent-color: #ff3c00;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #f9f9f9;
    --bg-dark: #161a23;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #000000;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-200);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 119, 0, 0.1);
}

nav a.active {
    color: var(--white);
    background-color: var(--primary-color);
}

nav a.active:hover {
    background-color: var(--accent-color);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 8rem 0;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--white);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-box {
    padding: 3rem;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-box .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 119, 0, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.feature-box .icon svg {
    width: 30px;
    height: 30px;
}

.feature-box h3 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

/* Latest Posts Section */
.latest-posts {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3.2rem;
    color: var(--secondary-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

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

.post-content {
    padding: 2rem;
}

.post-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 1rem;
}

.view-all {
    text-align: center;
    margin-top: 4rem;
}

/* This Day in History Section */
.this-day-history {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem;
    margin: 3rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.this-day-history h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.history-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.event {
    font-size: 1.6rem;
    line-height: 1.7;
}

/* Page Header */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/2.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Blog Content */
.blog-content {
    padding: 6rem 0;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.blog-post {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .blog-post {
        grid-template-columns: 300px 1fr;
    }
}

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

.blog-post .post-content {
    padding: 3rem;
}

.blog-post h2 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

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

.blog-post h3 {
    font-size: 2.2rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--secondary-color);
}

.blog-post p {
    margin-bottom: 1.5rem;
}

.blog-post ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.blog-post ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.blog-post ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* About Content */
.about-content {
    padding: 6rem 0;
}

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

.about-intro h2, .about-values h2, .team-section h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.about-intro p {
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.value-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.value-box .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 119, 0, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.value-box .icon svg {
    width: 30px;
    height: 30px;
}

.value-box h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--secondary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-member {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

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

.team-member h3 {
    margin: 2rem 0 0.5rem;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.team-member p {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.team-member p:nth-child(3) {
    color: var(--primary-color);
    font-weight: 600;
}

.team-member .social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

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

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

.team-member .social-icons svg {
    width: 20px;
    height: 20px;
}

/* Contact Content */
.contact-content {
    padding: 6rem 0;
}

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

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h2, .contact-form h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.contact-method .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 119, 0, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-method .icon svg {
    width: 24px;
    height: 24px;
}

.method-details h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

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

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

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

.social-icons svg {
    width: 20px;
    height: 20px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.1);
}

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

.checkbox input {
    width: auto;
}

.checkbox label {
    margin-bottom: 0;
}

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

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 4rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 3rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}

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

.modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.modal-icon svg {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
}

.modal h2 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.modal p {
    margin-bottom: 2.5rem;
}

.modal .btn {
    margin-top: 1rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-links h3, .footer-social h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
}

.footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
}

.footer-bottom p {
    margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--white);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cookie-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-cookie {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-cookie.accept:hover {
    background-color: var(--accent-color);
}

.btn-cookie.customize {
    background-color: var(--gray-700);
    color: var(--white);
}

.btn-cookie.customize:hover {
    background-color: var(--gray-600);
}

.btn-cookie.decline {
    background-color: transparent;
    color: var(--gray-300);
    border: 1px solid var(--gray-600);
}

.btn-cookie.decline:hover {
    background-color: var(--gray-800);
}

.cookie-more {
    font-size: 1.4rem;
}

.cookie-more a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .feature-box, .post-card, .value-box, .team-member {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 3.6rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .features .container, .posts-grid, .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .this-day-history {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
