/*
Theme Name: TrueLearn
Theme URI: https://example.com/truelearn/
Author: Your Name
Author URI: https://example.com/
Description: An AI-powered e-learning platform theme for WordPress.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: truelearn
*/

/*==========================================================================
  Global Styles & Typography
==========================================================================*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #00a0d2;
}

.button, input[type="submit"], button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.button:hover, input[type="submit"]:hover, button:hover {
    background-color: #00a0d2;
    color: #fff;
}

/*==========================================================================
  Header & Navigation
==========================================================================*/
.site-header {
    background-color: #fff;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.site-branding .site-title a {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.site-branding .site-description {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin-left: 25px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0073aa;
    transition: width 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

/*==========================================================================
  Front Page Sections
==========================================================================*/
.front-page-section {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
}

/* Hero Section */
.hero-section {
    color: #fff;
    padding: 120px 20px;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-color: #333; /* Fallback */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-cta-button {
    background-color: #00a0d2;
    font-size: 18px;
    padding: 15px 30px;
}
.hero-cta-button:hover {
    background-color: #fff;
    color: #00a0d2;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}
.feature-item h3 {
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    background-color: #0073aa;
    color: #fff;
}
.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}
.cta-button {
    background-color: #fff;
    color: #0073aa;
}
.cta-button:hover {
    background-color: #eee;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.testimonial-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}
.testimonial-item blockquote {
    margin: 0 0 15px;
    font-style: italic;
}
.testimonial-item cite {
    font-weight: 600;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}
.blog-post-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}
.blog-post-item h3 a {
    color: #333;
}

/*==========================================================================
  Footer
==========================================================================*/
.site-footer {
    color: #fff;
    background-color: #222;
}

.footer-widgets-container {
    padding: 60px 5%;
    border-bottom: 1px solid #444;
}

.footer-widgets-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}
.footer-widget-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget-column li {
    margin-bottom: 10px;
}
.footer-widget-column a {
    color: #ccc;
}
.footer-widget-column a:hover {
    color: #fff;
}

.site-info-container {
    padding: 25px 5%;
}
.site-info {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.footer-navigation li {
    margin-right: 20px;
}
.footer-navigation a {
    color: #ccc;
}
.footer-navigation a:hover {
    color: #fff;
}
