/* Base styles and variables */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #f72585;
    --secondary-dark: #d31e74;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --success-color: #38b000;
    --warning-color: #ffaa00;
    --info-color: #00b4d8;
    --danger-color: #d90429;
    
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    --container-width: 1200px;
    --header-height: 80px;
    
    --font-primary: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Button styles */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

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

.btn-outline {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
}

.btn-outline:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header styles */
header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

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

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

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

nav a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

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

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(67, 97, 238, 0.9), rgba(67, 97, 238, 0.7)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Featured posts section */
.featured-posts {
    padding: 3rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.post-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    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-card .post-content {
    padding: 1.5rem;
}

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

.post-card p {
    margin-bottom: 1.25rem;
    color: var(--gray-color);
}

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

/* Newsletter section */
.newsletter {
    background-color: var(--light-gray);
    padding: 4rem 0;
    margin: 3rem 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Facts section */
.facts-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.facts-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.fact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.fact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.fact-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.fact-content p {
    color: var(--gray-color);
}

/* Footer styles */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

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

.footer-about {
    max-width: 300px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

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

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

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

.footer-links h3, .footer-contact h3 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

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

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 37, 41, 0.95);
    padding: 1.25rem;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

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

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

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

.cookie-policy-link:hover {
    color: #fff;
}

/* Page header */
.page-header {
    background: linear-gradient(rgba(67, 97, 238, 0.9), rgba(67, 97, 238, 0.7)), url('images/4.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.filter-options {
    margin-bottom: 2.5rem;
}

.search-bar {
    display: flex;
    margin-bottom: 1.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.search-bar button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 1.25rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.categories span {
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.categories span:hover, .categories span.active {
    background-color: var(--primary-color);
    color: #fff;
}

.posts-grid article.post-card {
    display: grid;
    grid-template-columns: 1fr;
}

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

.posts-grid .post-image {
    height: 100%;
}

.posts-grid .post-image img {
    height: 100%;
    object-fit: cover;
}

.posts-grid .post-details {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

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

.post-date {
    color: var(--gray-color);
}

/* About page */
.about-mission, .about-history {
    padding: 3rem 0;
}

.mission-content, .history-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .mission-content, .history-content {
        grid-template-columns: 1fr 1fr;
    }
}

.mission-image img, .history-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

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

.team-member {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding-bottom: 1.5rem;
}

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

.team-member h3 {
    margin: 1rem 0 0.25rem;
}

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

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-gray);
    border-radius: 50%;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.values-section {
    padding: 3rem 0;
}

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

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

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

/* Contact page */
.contact-section {
    padding: 3rem 0;
}

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

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

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 0.25rem;
}

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

.social-contact .social-icons {
    margin-top: 1rem;
}

.social-contact .social-icons a {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

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

.contact-form-container {
    background-color: #fff;
    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 #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

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

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

.map-section {
    padding: 3rem 0;
}

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

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

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

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.thank-you-message svg {
    color: var(--success-color);
    margin: 0 auto 1.5rem;
}

/* Blog post single */
.blog-post {
    padding: 3rem 0;
}

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

.post-header .post-meta {
    margin-bottom: 1rem;
}

.post-header h1 {
    margin-bottom: 1.5rem;
}

.post-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-gray);
    border-radius: 50%;
    color: var(--dark-color);
    transition: var(--transition);
}

.post-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

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

.post-featured-image img {
    width: 100%;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.post-content ul, .post-content ol {
    margin: 0 0 1.5rem 1.25rem;
}

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

.post-content ol li {
    list-style-type: decimal;
}

.info-box, .certification-box, .education-option, .cta-box {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.certification-details, .option-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .certification-details, .option-details {
        grid-template-columns: 250px 1fr;
    }
}

.cta-box {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.cta-box h3 {
    color: #fff;
}

.cta-box .btn {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.cta-box .btn:hover {
    background-color: transparent;
    color: #fff;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

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

.author-info h3 {
    margin-bottom: 0.5rem;
}

.author-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

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

.nav-box {
    padding: 1.25rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-box:hover {
    background-color: #e9e9e9;
}

.nav-box span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.nav-prev {
    text-align: left;
}

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

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

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

.courses-grid, .profile-recommendations, .online-platforms, .free-options, .specialized-courses, .roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.course-card, .profile-card, .platform-card, .free-option-card, .specialized-course-card, .role-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.course-card h3, .profile-card h3, .platform-card h3, .free-option-card h3, .specialized-course-card h3, .role-card h3 {
    margin-bottom: 0.75rem;
}

.sectors-list, .recommendations {
    margin: 2rem 0;
}

.sectors-list li, .recommendation-item {
    margin-bottom: 1.25rem;
}

.recommendation-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.salary-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.salary-table table {
    width: 100%;
    border-collapse: collapse;
}

.salary-table th, .salary-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.salary-table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

.salary-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sponsored-programs {
    margin: 2rem 0;
    list-style-type: none;
}

.sponsored-programs li {
    background-color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 2rem 0;
}

.pagination .current-page {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 50px;
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 991px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        gap: 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul a {
        display: block;
        padding: 1rem 1.5rem;
    }
    
    nav a.active::after {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .post-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .post-social {
        flex-wrap: wrap;
    }
}
