/* Base Styles and Variables */
:root {
    --primary-color: #ff6b2b; /* Orange for CS-themed sites */
    --secondary-color: #3c3c3c; /* Dark gray */
    --accent-color: #2d98da; /* Blue accent */
    --dark-color: #222222;
    --light-color: #f8f8f8;
    --text-color: #333333;
    --light-text: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 6px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark-color);
    transition: var(--transition);
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    color: var(--primary-color);
}

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

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

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

p {
    margin-bottom: 15px;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    color: var(--light-text);
}

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

.btn-tertiary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

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

/* Header and Navigation */
header {
    background-color: var(--dark-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

.header-right {
    display: flex;
    align-items: center;
}

.clock {
    color: var(--light-text);
    margin-right: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 14px;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

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

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: 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(--light-text);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Featured Section */
.featured {
    padding: 80px 0;
    background-color: var(--light-color);
}

.featured h2 {
    text-align: center;
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

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

.featured-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

.featured-item p {
    padding: 0 20px 20px;
    color: var(--secondary-color);
}

.read-more {
    display: block;
    padding: 10px 20px 20px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    color: var(--light-text);
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 14px;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Recent Posts Section */
.recent-posts {
    padding: 80px 0;
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

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

.post-info {
    padding: 15px;
    flex: 1;
}

.post-info .date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.post-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.post-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.view-all {
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0 20px;
    margin-top: auto;
}

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

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-about p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.registration {
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-links h4, .footer-legal h4, .footer-contact h4 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-legal ul li a {
    color: var(--light-text);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-contact address {
    font-style: normal;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-contact address p {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

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

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

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 15px 0;
    z-index: 1001;
    display: none; /* Initially hidden, will be shown via JS */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cookie-more-info {
    font-size: 0.8rem;
    opacity: 0.8;
}

.cookie-more-info a {
    text-decoration: underline;
}

/* Page Header (for interior pages) */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/3.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--light-text);
    margin-bottom: 15px;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Blog Page Styles */
.blog-posts {
    padding: 60px 0;
}

.blog-post {
    margin-bottom: 60px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.blog-post:last-child {
    margin-bottom: 0;
}

.post-image {
    width: 100%;
}

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

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.date, .category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.category {
    color: var(--primary-color);
    font-weight: 600;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tag {
    background-color: var(--light-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.blog-sidebar {
    background-color: var(--light-color);
    padding: 60px 0;
}

.sidebar-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.sidebar-section {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.sidebar-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.categories ul li {
    margin-bottom: 10px;
}

.categories ul li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    transition: var(--transition);
}

.categories ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.mini-post {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.mini-post:last-child {
    margin-bottom: 0;
}

.mini-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 15px;
}

.mini-post h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.mini-post .date {
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* About Us Page Styles */
.about-intro {
    padding: 60px 0;
}

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

.about-text h2 {
    margin-bottom: 25px;
}

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

.our-values {
    background-color: var(--light-color);
    padding: 60px 0;
}

.our-values h2 {
    text-align: center;
    margin-bottom: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.value-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
}

.team-section {
    padding: 60px 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 15px;
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

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

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

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

.team-member h3 {
    margin: 20px 15px 5px;
}

.team-member p {
    padding: 0 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0 20px;
}

.member-social a {
    color: var(--secondary-color);
    transition: var(--transition);
}

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

.testimonials {
    background-color: var(--light-color);
    padding: 60px 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.partners {
    padding: 60px 0;
}

.partners h2 {
    text-align: center;
    margin-bottom: 40px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.partner img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.partner img:hover {
    opacity: 1;
}

.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/5.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    color: var(--light-text);
    margin-bottom: 15px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-info {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    align-items: start;
}

.contact-details h2 {
    margin-bottom: 20px;
}

.contact-details > p {
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

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

.contact-icon {
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 24px;
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-text p, .contact-text a {
    color: var(--text-color);
    font-size: 0.95rem;
}

.contact-text a:hover {
    color: var(--primary-color);
}

.registration-info {
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.social-connect h3 {
    margin-bottom: 15px;
}

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-form-container h2 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

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

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

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

.map-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-section {
    padding: 60px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.faq-item h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

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

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

.success-icon {
    color: var(--success-color);
    margin-bottom: 20px;
}

.thank-you-content h2 {
    margin-bottom: 15px;
}

.close-thank-you {
    margin-top: 20px;
}

/* Icons for footer contact info */
.icon-location, .icon-phone, .icon-email {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    position: relative;
    top: 2px;
}

.icon-location::before {
    content: "📍";
}

.icon-phone::before {
    content: "📞";
}

.icon-email::before {
    content: "✉️";
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-right {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .clock {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 15px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    
    .blog-post {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .featured-grid, .posts-grid, .values-grid, .team-grid, .testimonial-slider, .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-card img {
        width: 100%;
        height: 200px;
    }
    
    .partner-logos {
        gap: 20px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
