/* =============================================
   STUDY BUDYS - HOME PAGE CSS
   Theme: Light Green + Light Orange
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --green-dark:   #1B4332;
    --green-main:   #52B788;
    --green-medium: #40916C;
    --green-light:  #D8F3DC;
    --green-soft:   #F0FAF3;
    --orange-main:  #FF9F43;
    --orange-light: #FFF3E6;
    --orange-dark:  #e8893a;
    --text-dark:    #1A202C;
    --text-medium:  #4A5568;
    --text-light:   #718096;
    --white:        #ffffff;
    --shadow-sm:    0 2px 8px rgba(82,183,136,0.12);
    --shadow-md:    0 8px 25px rgba(82,183,136,0.15);
    --shadow-lg:    0 15px 40px rgba(82,183,136,0.18);
    --radius:       12px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: var(--text-dark);
}

/* ---- Shared Section Utilities ---- */
.section-pad { padding: 40px 0; }
.bg-soft-green { background: var(--green-soft); }
.bg-soft-orange { background: var(--orange-light); }

.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-heading h2 span {
    color: var(--green-main);
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-main), var(--orange-main));
    border-radius: 2px;
    margin: 12px auto 0;
}

.section-heading p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 550px;
    margin: 0 auto;
}

/* =============================================
   HERO / BANNER SECTION
   ============================================= */
.banner-area {
    position: relative;
}

.hero-slide-item {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-slide-row {
    height: 320px;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-text-block {
    padding: 0 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 620px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 92%;
}

.hero-desc p {
    font-size: 14px !important;
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

.hero-btns {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-block;
    background: #fff;
    color: #1a202c;
    padding: 11px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.hero-btn-primary:hover {
    background: var(--orange-main);
    border-color: var(--orange-main);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 10px 26px;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.7);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Carousel Controls */
.carousel-control {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    opacity: 1;
}

.carousel-control:hover {
    background: var(--orange-main) !important;
}

.carousel-control .fa {
    font-size: 20px;
    color: #fff;
}

.left.carousel-control { left: 15px; }
.right.carousel-control { right: 15px; }

/* =============================================
   ABOUT + NOTICE BOARD
   ============================================= */
.about-notice-section {
    padding: 30px 0;
    background: #fff;
}

.about-content .section-tag {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-medium);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.3;
}

.about-text p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-medium);
}

.btn-green {
    display: inline-block;
    background: var(--green-main);
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.btn-green:hover {
    background: var(--green-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* Notice Board */
.notice-board-modern {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--green-light);
}

.notice-header {
    background: linear-gradient(90deg, var(--green-main), var(--green-medium));
    color: #fff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.notice-header i {
    color: #FFB347;
    font-size: 18px;
}

.notice-body {
    height: 290px;
    overflow: hidden;
    position: relative;
}

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

.notice-body ul li {
    border-bottom: 1px solid var(--green-light);
}

.notice-body ul li a {
    display: flex;
    align-items: flex-start;
    padding: 14px 20px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    gap: 10px;
}

.notice-body ul li a:hover {
    background: var(--green-soft);
    color: var(--green-medium);
}

.notice-icon {
    color: var(--orange-main);
    min-width: 14px;
    margin-top: 2px;
}

/* =============================================
   CURRENT AFFAIRS + GK SECTION
   ============================================= */
.news-gk-section {
    padding: 40px 0;
    background: var(--green-soft);
}

.section-title-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--green-light);
}

.section-title-modern img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-main);
}

.section-title-modern h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.section-title-modern .title-tag {
    display: inline-block;
    background: var(--orange-light);
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
    text-transform: uppercase;
}

/* News Cards */
.modern-news-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--green-main);
    display: flex;
    flex-direction: column;
}

.modern-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--orange-main);
}

.modern-news-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.modern-news-card h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.modern-news-card h4 a:hover { color: var(--green-medium); }

.news-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.news-date i { color: var(--orange-main); }

.modern-news-card p {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.news-action a {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view {
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid var(--green-main);
}

.btn-view:hover {
    background: var(--green-main);
    color: #fff;
    transform: translateY(-1px);
}

.btn-subscribe {
    background: var(--orange-light);
    color: var(--orange-dark);
    border: 1px solid var(--orange-main);
}

.btn-subscribe:hover {
    background: var(--orange-main);
    color: #fff;
}

/* =============================================
   BLOG CATEGORIES
   ============================================= */
.blog-categories-section {
    padding: 40px 0;
    background: #fff;
}

.modern-cat-card {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 175px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    text-decoration: none;
}

.modern-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.modern-cat-card:hover img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(27,67,50,0.92) 0%,
        rgba(27,67,50,0.3) 60%,
        transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 12px;
    transition: background 0.4s ease;
}

.modern-cat-card:hover .cat-overlay {
    background: linear-gradient(to top,
        rgba(255,159,67,0.9) 0%,
        rgba(255,159,67,0.3) 60%,
        transparent 100%);
}

.cat-overlay h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   BLOG SECTION
   ============================================= */
.blogs-section {
    padding: 40px 0;
    background: var(--green-soft);
}

.modern-blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    margin-bottom: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fix blog row to equal heights */
.blogs-section .row {
    display: flex;
    flex-wrap: wrap;
}

.blogs-section .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.modern-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-thumb {
    position: relative;
    height: 210px;
    overflow: hidden;
}

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

.modern-blog-card:hover .blog-thumb img {
    transform: scale(1.07);
}

.blog-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--orange-main);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255,159,67,0.4);
}

.blog-date-badge .date-d {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.blog-date-badge .date-m {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 3px;
    opacity: 0.9;
}

.blog-info {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i { color: var(--green-main); }

.blog-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}

.blog-info h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-info h3 a:hover { color: var(--green-medium); }

.blog-info p {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.3s;
    margin-top: auto;
}

.read-more-link:hover {
    color: var(--orange-main);
    gap: 12px;
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 300px;
    color: rgba(255,255,255,0.04);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonials-section .section-heading h2 {
    color: #fff;
}

.testimonials-section .section-heading::after {
    background: linear-gradient(90deg, var(--green-main), var(--orange-main));
}

/* Testimonials as Bootstrap slider (no OWL dependency) */
.testi-slider {
    position: relative;
}

.testi-slider .carousel-inner {
    overflow: visible;
}

.modern-testimonial-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 28px 36px;
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
    position: relative;
}

.modern-testimonial-card::before {
    content: '\f10d';
    font-family: 'FontAwesome';
    position: absolute;
    top: 24px;
    left: 30px;
    font-size: 28px;
    color: var(--orange-main);
    opacity: 0.6;
}

.testi-author {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testi-author img {
    width: 80px !important;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--orange-main);
    box-shadow: 0 4px 16px rgba(255,159,67,0.35);
    margin-bottom: 14px;
}

.testi-author h4 {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    margin: 0 0 4px;
}

.testi-author span {
    color: var(--green-main);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testi-content p {
    color: #D8F3DC;
    font-size: 15px;
    line-height: 1.85;
    font-style: italic;
    font-weight: 300;
    margin: 0;
}

/* Testi carousel nav */
.testi-slider .carousel-control {
    background: rgba(255,255,255,0.1) !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.testi-slider .carousel-control:hover {
    background: var(--orange-main) !important;
}

/* Testi carousel indicators */
.testi-slider .carousel-indicators {
    bottom: -40px;
}

.testi-slider .carousel-indicators li {
    background: rgba(255,255,255,0.3);
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
}

.testi-slider .carousel-indicators .active {
    background: var(--orange-main);
    width: 28px;
    border-radius: 5px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
