/* Hero Section - Aligned with Image Design */
.hero {
    position: relative;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    margin-bottom: 0;
    background: #111a30;
}

.hero:has(.hero-media img) {
    background: transparent;
    height: auto;
}

.hero-media {
    width: 100%;
    flex: 1;
    max-height: 700px;
    overflow: hidden;
    display: block;
    position: relative;
    line-height: 0;
}

.hero-media img {
    width: 100%;
    height: auto;
    max-height: 700px;
    min-height: 500px;
    object-fit: cover;
    filter: brightness(0.75);
    display: block;
    object-position: center;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero .hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(115deg, rgba(17, 26, 48, 0.85) 0%, rgba(17, 26, 48, 0.35) 55%, rgba(17, 26, 48, 0.25) 100%);
    color: #ffffff;
    padding: calc(4rem + 3rem) 5% 2.5rem;
    z-index: 1;
}

.hero .hero-content {
    width: min(900px, 90%);
    max-width: 600px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.hero .hero-title {
    font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.hero .hero-title .hero-highlight {
    color: #111a30;
    background: none;
    background-image: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #1f295e;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    word-break: keep-all;
}

.hero .hero-description {
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 1.75rem;
    line-height: 1.8;
    color: #ffffff;
}

/* List styles for hero-description */
.hero .hero-description ul,
.hero .hero-description ol {
    margin: 0.5em 0 !important;
    padding-left: 2em !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
}

.hero .hero-description ol {
    list-style-type: decimal !important;
}

.hero .hero-description li {
    margin: 0.2em 0 !important;
    line-height: 1.4 !important;
    display: list-item !important;
}

.hero .hero-description p {
    margin: 0.5em 0;
    line-height: 1.4;
}

.hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    width: 100%;
    margin-top: auto;
    padding-top: 2rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* or a fixed min-height if you want */
}

.course-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.course-meta {
    margin-top: auto; /* pushes the meta and button to the bottom */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    min-height: 1.5rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.btn.btn-outline {
    margin-top: 1rem;
    align-self: flex-start; /* or center, as you prefer */
}
.news-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.news-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.news-link:hover::before {
    left: 100%;
}

.news-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.news-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.link-text {
    position: relative;
    z-index: 1;
}

.link-icon {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.news-link:hover .link-icon {
    transform: translateX(3px);
}

/* Alternative style option - if you prefer a more subtle look */
.news-link.subtle {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: none;
}

.news-link.subtle:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* News Section Styles */
.news {
    background: #ffffff;
    padding: 4.5rem 0;
    border-top: 2px solid #e5e7eb;
    margin-top: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.news-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.news-date {
    font-weight: 500;
}

.news-source {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Search Button Styles */
.search-button {
    background: white;
    color: #333;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-button:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-button:active {
    transform: scale(0.95);
}

.search-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.search-button:hover i {
    transform: scale(1.1);
}

/* Membership Section - Simple & Stylish */
.membership-section {
    padding: 4.5rem 0;
    background: #ffffff;
    border-top: 2px solid #e5e7eb;
    margin-top: 0;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.membership-card {
    background: #f9faff;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.membership-card:hover {
    transform: translateY(-8px);
    border-color: #0f73ff;
    box-shadow: 0 15px 40px rgba(15, 115, 255, 0.15);
    background: #ffffff;
}

.membership-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    padding: 1rem;
    transition: all 0.3s ease;
}

.membership-card:hover .membership-icon {
    transform: scale(1.05);
}

.membership-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.membership-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111a30;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

/* Hero Social Links Styles */
.hero-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.social-link-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.social-link-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link-hero:hover::before {
    left: 100%;
}

.social-link-hero:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.social-link-hero:active {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.social-link-hero i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link-hero:hover i {
    transform: scale(1.1);
}

/* Individual social platform colors on hover */
.social-link-hero[href*="facebook"]:hover {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-link-hero[href*="linkedin"]:hover {
    background: linear-gradient(135deg, #0a66c2 0%, #0077b5 100%);
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.4);
}

.social-link-hero[href*="instagram"]:hover {
    background: linear-gradient(135deg, #e4405f 0%, #f56040 50%, #fcaf45 100%);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-link-hero[href*="youtube"]:hover {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-link-hero[href*="telegram"]:hover {
    background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.social-link-hero[href*="whatsapp"]:hover {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Comprehensive Mobile Responsive Design */

/* Tablet and smaller desktop adjustments */
@media (max-width: 1024px) {
    .django-container {
        padding: 0 1.5rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .course-card {
        margin-bottom: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .membership-static {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* Mobile landscape and portrait */
@media (max-width: 768px) {
    .django-container {
        padding: 0 1rem;
    }
    
    /* Course Cards Mobile */
    .course-card {
        margin-bottom: 1.25rem;
        border-radius: 12px;
    }
    
    .course-content {
        padding: 1.25rem;
    }
    
    .course-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .course-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        height: auto;
        overflow: visible;
    }
    
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
    
    .course-meta span {
        gap: 0.3rem;
    }
    
    .btn.btn-outline {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
    
    /* News Section Mobile */
    .news-actions {
        justify-content: center;
        margin: 1.5rem 0;
    }
    
    .news-link {
        padding: 10px 18px;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 1.5rem;
    }
    
    .news-card {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
        height: auto;
        overflow: visible;
        margin-bottom: 1rem;
    }
    
    .news-meta {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .read-more {
        font-size: 0.85rem;
    }
    
    /* Search Button Mobile */
    .search-button {
        width: 36px;
        height: 36px;
    }
    
    .search-button i {
        font-size: 0.9rem;
    }
    
    /* Membership Section Mobile */
    .membership-section {
        padding: 3rem 0;
    }
    
    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .membership-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
    }
    
    .membership-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1.25rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .django-container {
        padding: 0 0.75rem;
    }
    
    /* Course Cards Small Mobile */
    .course-card {
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    .course-content {
        padding: 1rem;
    }
    
    .course-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .course-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .course-meta {
        font-size: 0.75rem;
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }
    
    .btn.btn-outline {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    /* News Section Small Mobile */
    .news-link {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 18px;
    }
    
    .news-grid {
        gap: 15px;
        margin-top: 1rem;
    }
    
    .news-card {
        border-radius: 10px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .news-meta {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .read-more {
        font-size: 0.8rem;
    }
    
    /* Search Button Small Mobile */
    .search-button {
        width: 32px;
        height: 32px;
    }
    
    .search-button i {
        font-size: 0.8rem;
    }
    
    /* Membership Section Small Mobile */
    .membership-section {
        padding: 3rem 0;
    }
    
    .membership-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .membership-card {
        padding: 1.75rem 1.25rem;
        min-height: 160px;
    }
    
    .membership-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 1rem;
    }
    
    .membership-title {
        font-size: 0.95rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .django-container {
        padding: 0 0.5rem;
    }
    
    .course-content {
        padding: 0.75rem;
    }
    
    .course-title {
        font-size: 0.95rem;
    }
    
    .course-description {
        font-size: 0.8rem;
    }
    
    .news-content {
        padding: 10px;
    }
    
    .news-title {
        font-size: 0.95rem;
    }
    
    .news-excerpt {
        font-size: 0.8rem;
    }
    
    .membership-card {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }
    
    .membership-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 0.875rem;
    }
    
    .membership-title {
        font-size: 0.9rem;
    }
}

/* Homepage-only override: service icon inside consultancy cards */
#consultancy .service-card .service-icon {
    width: 100px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background:  #ffffff;
    color: #1e40af;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

#consultancy .service-card .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Hero Section Mobile Overrides - Homepage Specific */

/* Tablet landscape - maintain desktop layout with adjustments */
@media (max-width: 1024px) and (min-width: 900px) {
    .hero {
        min-height: 450px;
    }
    
    .hero .hero-content {
        max-width: 550px;
    }
}

/* Tablet portrait - maintain desktop layout but with smaller spacing */
@media (max-width: 899px) and (min-width: 769px) {
    .hero {
        min-height: 400px;
    }
    
    .hero .hero-content {
        max-width: 500px;
    }
    
    .hero .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero .hero-description {
        font-size: 1rem;
    }
}

/* Mobile landscape and portrait */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
    }
    
    .hero .hero-overlay {
        padding: calc(4rem + 2rem) 5% 2rem;
    }
    
    .hero .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }
    
    .hero .hero-title {
        font-size: 2rem;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .hero .hero-description {
        text-align: left;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .hero-actions {
        justify-content: flex-start;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero .hero-actions .btn-black {
        width: 100%;
        max-width: 280px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero {
        min-height: 350px;
    }
    
    .hero .hero-overlay {
        padding: calc(3.5rem + 1.5rem) 5% 1.5rem;
    }
    
    .hero .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .hero-actions {
        gap: 0.5rem;
    }
    
    .hero .hero-actions .btn-black {
        max-width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .hero {
        min-height: 300px;
    }
    
    .hero .hero-overlay {
        padding: calc(3.5rem + 1rem) 5% 1rem;
    }
    
    .hero .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero .hero-actions {
        gap: 0.4rem;
    }
    
    .hero .hero-actions .btn-black {
        max-width: 100%;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Consultancy Section Styles */
.consultancy {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 4.5rem 0;
    background: #ffffff;
    margin-top: 0;
}

/* Remove any hr or separator lines between sections */
.hero + .consultancy,
.hero + section,
section + section {
    border-top: none !important;
}

/* Consultancy Banner Styles */
.consultancy-banner {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.consultancy-banner img {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Services Section Homepage Styles - Aligned with Consultancy */
.services-section {
    padding: 4.5rem 0;
    background: #ffffff;
}

.services-grid-homepage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card-homepage {
    background: #f9faff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(17, 26, 48, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card-homepage:hover,
.service-card-homepage:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(17, 26, 48, 0.12);
}

.service-card-homepage .card-image {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.service-card-homepage .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-homepage:hover .card-image img {
    transform: scale(1.05);
}

.service-card-homepage .card-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-homepage h3 {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
    color: #111a30;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.service-card-homepage h3 .service-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-card-homepage p {
    color: #5e6575;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0;
}

.service-card-homepage .card-actions {
    margin-top: auto;
    padding: 1.5rem 1.8rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Clients Section Styles - Aligned with Consultancy */
.clients-section {
    padding: 4rem 0;
    background: #f9faff;
    border-top: 2px solid #e5e7eb;
    margin-top: 0;
}

.client-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.client-item {
    background: #f0f2fb;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    min-height: 100px;
}

.client-item img {
    max-height: 52px;
    width: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.client-item:hover {
    transform: translateY(-6px);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(17, 26, 48, 0.1);
}

.client-item:hover img {
    opacity: 1;
}

/* Why Choose Us Section Styles */
.why-choose-us-section {
    padding: 80px 0;
    background: #ffffff;
    border-top: 2px solid #e5e7eb;
    margin-top: 0;
}

.why-choose-us-content {
    max-width: 900px;
    margin: 2rem auto 0;
}

.why-choose-us-content p,
.why-choose-us-content div {
    color: #5e6575;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

/* List styles for why-choose-us-content */
.why-choose-us-content ul,
.why-choose-us-content ol {
    margin: 0.5em 0 !important;
    padding-left: 2em !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
}

.why-choose-us-content ol {
    list-style-type: decimal !important;
}

.why-choose-us-content li {
    margin: 0.2em 0 !important;
    line-height: 1.4 !important;
    display: list-item !important;
}

.why-choose-us-content p {
    margin: 0.5em 0;
    line-height: 1.4;
}

/* Courses Header Actions */
.courses-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.courses-header-actions .search-container {
    flex: 1;
    max-width: 400px;
    margin-left: auto;
}

/* Responsive Styles for New Sections */
@media (max-width: 1024px) {
    .services-grid-homepage {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-grid-homepage {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .clients-section {
        padding: 60px 0;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .client-item-homepage {
        padding: 1.5rem;
        min-height: 100px;
    }
    
    .client-item-homepage img {
        max-height: 50px;
    }
    
    .why-choose-us-section {
        padding: 60px 0;
    }
    
    .why-choose-us-content p,
    .why-choose-us-content div {
        font-size: 1rem;
    }
    
    .courses-header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .courses-header-actions .search-container {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 0;
    }
    
    .clients-section {
        padding: 40px 0;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .client-item-homepage {
        padding: 1.25rem;
        min-height: 90px;
    }
    
    .why-choose-us-section {
        padding: 40px 0;
    }
    
    .why-choose-us-content p,
    .why-choose-us-content div {
        font-size: 0.95rem;
    }
}

/* Button Styles - Aligned with Consultancy */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid transparent;
}

/* Primary Button Styles - Matching Consultancy */
.btn-black,
.consultancy-btn-primary {
    background: linear-gradient(135deg, #0056b3, #0f73ff);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 115, 255, 0.25);
    border: 2px solid transparent;
}

.btn-black:hover,
.btn-black:focus,
.consultancy-btn-primary:hover,
.consultancy-btn-primary:focus {
    background: #ffffff;
    color: #0f73ff;
    border-color: #0f73ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 115, 255, 0.25);
    text-decoration: none;
}

.btn-black:active,
.consultancy-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button Styles - Matching Consultancy */
.consultancy-btn-secondary {
    background: #ffffff;
    color: #0f73ff;
    border: 2px solid #0f73ff;
}

.consultancy-btn-secondary:hover,
.consultancy-btn-secondary:focus {
    background: linear-gradient(135deg, #0056b3, #0f73ff);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 115, 255, 0.35);
    text-decoration: none;
}

/* Card Button Styles - Matching Consultancy */
.btn-card-primary {
    background: #ffffff;
    border: 2px solid #0f73ff;
    color: #0f73ff;
}

.btn-card-primary:hover,
.btn-card-primary:focus {
    background: #0f73ff;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 115, 255, 0.2);
    text-decoration: none;
}

.btn-card-secondary {
    background: #ffffff;
    border: 2px solid #f64b8d;
    color: #f64b8d;
    text-align: center;
    justify-content: center;
}

.btn-card-secondary:hover,
.btn-card-secondary:focus {
    background: #f64b8d;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(246, 75, 141, 0.2);
    text-decoration: none;
}

/* Blog Section Styles */
/* Section Separators - After Training Section */
.academy-support-section + .blog {
    border-top: 3px solid #e5e7eb;
    margin-top: 0;
}

.blog {
    background: #ffffff;
    padding: 4.5rem 0;
    border-top: 1px solid #e5e7eb;
}

/* Blog Banner Styles */
.blog-banner {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* Bottom Banner Section Styles */
.bottom-banner-section {
    padding: 0;
    background: #f9faff;
    margin: 0;
    border-top: 2px solid #e5e7eb;
}

.bottom-banner-image {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
}

.bottom-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Section Header Styles - Aligned with Consultancy */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2,
.section-title {
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    margin-bottom: 0.8rem;
    color: #111a30;
    font-weight: 700;
}

.section-header p,
.section-description {
    max-width: 680px;
    margin: 0 auto;
    color: #5e6575;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* List styles for section-description */
.section-description ul,
.section-description ol {
    margin: 0.5em 0 !important;
    padding-left: 2em !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
}

.section-description ol {
    list-style-type: decimal !important;
}

.section-description li {
    margin: 0.2em 0 !important;
    line-height: 1.4 !important;
    display: list-item !important;
}

.section-description p {
    margin: 0.5em 0;
    line-height: 1.4;
}

/* Update hero actions to use black buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Update courses header actions */
.courses-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.courses-header-actions .btn-black {
    margin-right: auto;
}

/* Update news actions */
.news-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Responsive adjustments for black buttons */
@media (max-width: 768px) {
    .btn-black {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn-black {
        width: 100%;
        max-width: 300px;
    }
    
    .courses-header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .courses-header-actions .btn-black {
        width: 100%;
        margin-right: 0;
    }
    
    .blog-banner img {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .btn-black {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .blog-banner img {
        max-height: 200px;
    }
}

/* Fade-in-up Animation - Matching Consultancy */
.fade-in-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for services section */
@media (max-width: 1024px) {
    .services-grid-homepage {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .client-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .service-card-homepage .card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .membership-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
    }
    
    .services-grid-homepage {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .clients-section {
        padding: 3rem 0;
    }
    
    .client-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
    
    .service-card-homepage .card-actions {
        padding-top: 1rem;
    }
    
    .btn-card-primary,
    .btn-card-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .client-logos {
        grid-template-columns: 1fr;
    }
}

/* TE Training Academy Support Section - Blue Background */
.academy-support-section {
    position: relative;
    padding: 100px 0;
    background: #3476d3c7;
    overflow: hidden;
    margin: 60px 0;
}

.academy-support-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
}

.academy-support-content {
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 3;
}

.academy-support-icon {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.academy-support-icon > i:first-of-type {
    flex: 0 0 auto;
}

.academy-support-icon > i.fas {
    flex: 0 0 auto;
}

.academy-support-icon > img:last-of-type {
    flex: 0 0 auto;
}

.academy-support-icon img {
    height: 3rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.academy-support-icon i {
    display: inline-flex;
    align-items: center;
}

.academy-support-icon i img {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

.academy-support-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.academy-support-description {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.academy-support-description strong {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.academy-support-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.academy-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 180px;
}

.academy-feature:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.academy-feature i {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.academy-feature span {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.academy-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: #ffffff;
    color: #0f73ff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.academy-support-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: #0052a3;
    text-decoration: none;
}

.academy-support-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.academy-support-btn i {
    transition: transform 0.3s ease;
}

.academy-support-btn:hover i {
    transform: translateX(5px);
}


/* Responsive Design for Academy Support Section */
@media (max-width: 768px) {
    .academy-support-section {
        padding: 60px 0;
        margin: 40px 0;
    }

    .academy-support-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .academy-support-icon img,
    .academy-support-icon i img {
        height: 2.2rem;
    }

    .academy-support-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .academy-support-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .academy-support-features {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .academy-feature {
        min-width: 140px;
        padding: 1.25rem 1.5rem;
    }

    .academy-feature i {
        font-size: 2rem;
    }

    .academy-feature span {
        font-size: 0.9rem;
    }

    .academy-support-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .academy-support-section {
        padding: 50px 0;
    }

    .academy-support-container {
        padding: 0 1rem;
    }

    .academy-support-icon {
        font-size: 2rem;
    }
    
    .academy-support-icon img,
    .academy-support-icon i img {
        height: 1.8rem;
    }

    .academy-support-title {
        font-size: 1.75rem;
    }

    .academy-support-description {
        font-size: 0.95rem;
    }

    .academy-support-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .academy-feature {
        width: 100%;
        max-width: 280px;
    }

    .academy-support-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Our Services Trust Section Styles */
.our-services-trust {
    background: #ffffff;
    padding: 60px 0 50px 0;
}
.our-services-trust .section-header {
    text-align: center;
    margin-bottom: 36px;
}
.our-services-trust .section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    color: #21242a;
}
.our-services-trust .section-description {
    font-size: 1.12rem;
    color: #424242;
    margin: 0 auto 0 auto;
    max-width: 720px;
    line-height: 1.5;
}
.trust-highlights {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}
.trust-highlight {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(30,41,59,0.06);
    padding: 30px 28px 28px 28px;
    max-width: 340px;
    min-width: 260px;
    flex: 1 1 220px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.trust-highlight:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 8px 32px rgba(30,41,59,0.09);
}
.trust-highlight i {
    font-size: 2.5rem;
    color: #00706C;
    margin-bottom: 16px;
}
.trust-highlight h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222C37;
    letter-spacing: 0.01em;
}
.trust-highlight p {
    font-size: 1rem;
    color: #43484f;
    line-height: 1.45;
}
/* Responsive Design */
@media (max-width: 950px) {
    .trust-highlights {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .trust-highlight {
        max-width: 440px;
    }
}