/*
Theme Name: IDFST - Digital Forensic Institute
Theme URI: https://idfst.edu.pk
Author: 5TechSolution
Author URI: https://5techsolution.com
Description: A professional WordPress theme for International Institute of Digital Forensic Science & Technology. Designed for educational institutes offering digital forensics, cybersecurity, and cybercrime investigation courses.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: idfst
Tags: education, institute, forensic, cybersecurity, responsive, custom-header, custom-menu, custom-logo
*/

/* ========================================
   IDFST Theme - Global Styles
   ======================================== */

:root {
    --primary-color: #1a5f9e;
    --secondary-color: #0d3b5c;
    --accent-color: #e8b43e;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Top Bar
   ======================================== */

.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

.top-bar-info {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info a:hover {
    color: var(--accent-color);
}

.top-bar-info i {
    color: var(--accent-color);
    font-size: 14px;
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: var(--white);
    font-size: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-social a:hover {
    background: var(--accent-color);
    color: var(--dark);
}

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

.site-title span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--border-radius);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    background: var(--primary-color);
    color: var(--white);
}

.main-navigation ul li.current-menu-item a {
    background: var(--accent-color);
    color: var(--dark);
}

/* Dropdown */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.main-navigation ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li a {
    padding: 10px 20px;
    border-radius: 0;
}

.main-navigation ul ul li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png') repeat;
    opacity: 0.05;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-tags span {
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark);
    border-color: var(--accent-color);
}

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

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

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

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ========================================
   Section Title
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Features / Why Choose Section
   ======================================== */

.features-section {
    padding: 80px 0;
    background: var(--light-bg);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
}

/* ========================================
   Courses Section
   ======================================== */

.courses-section {
    padding: 80px 0;
}

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

.course-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    font-family: var(--font-heading);
}

.course-content {
    padding: 35px 30px 30px;
}

.course-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    padding-top: 10px;
}

.course-content p {
    color: var(--gray);
    font-size: 15px;
}

.course-content .btn {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 14px;
}

/* ========================================
   Training Process
   ======================================== */

.process-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
}

.process-section .section-header h2,
.process-section .section-header p {
    color: var(--white);
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.process-step {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    max-width: 300px;
    flex: 1;
    min-width: 250px;
    position: relative;
}

.process-step::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 20px;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: var(--font-heading);
}

.process-step h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 10px;
}

.process-step p {
    opacity: 0.9;
    font-size: 15px;
}

/* ========================================
   Lab Focus Section
   ======================================== */

.lab-focus-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.lab-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.lab-focus-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.lab-focus-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.lab-focus-item:hover h4 {
    color: var(--white);
}

.lab-focus-item i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.lab-focus-item h4 {
    font-size: 16px;
}

/* ========================================
   Events Section
   ======================================== */

.events-section {
    padding: 80px 0;
    background: var(--white);
}

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

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

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 220px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--dark);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
}

.event-date .day {
    display: block;
    font-size: 24px;
}

.event-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.event-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.event-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray);
}

.event-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.event-content p {
    color: var(--gray);
    font-size: 15px;
    flex: 1;
}

.event-content .btn {
    margin-top: 15px;
    align-self: flex-start;
}

/* ========================================
   Gallery Section
   ======================================== */

.gallery-section {
    padding: 80px 0;
    background: var(--light-bg);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(13,59,92,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 18px;
}

.gallery-overlay span {
    color: var(--accent-color);
    font-size: 14px;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--white);
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-question i {
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--gray);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ========================================
   Registration / Inquiry Form
   ======================================== */

.registration-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.registration-section .section-header h2,
.registration-section .section-header p {
    color: var(--white);
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.registration-info {
    color: var(--white);
}

.registration-info h3 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 20px;
}

.registration-info p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.registration-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.registration-info ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.registration-info ul li i {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.registration-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.registration-form-wrap h3 {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

/* Contact Form */
.contact-form, .registration-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group label .required {
    color: var(--danger);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 158, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ========================================
   Contact / Bank Details Section
   ======================================== */

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

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

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.contact-item p, .contact-item a {
    color: var(--gray);
    font-size: 15px;
}

.bank-details {
    background: var(--light-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.bank-details h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-detail-row span:first-child {
    font-weight: 600;
    color: var(--secondary-color);
}

.bank-detail-row span:last-child {
    color: var(--gray);
    font-family: monospace;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .site-title {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-about p {
    opacity: 0.8;
    font-size: 15px;
    line-height: 1.8;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-widget ul li a i {
    font-size: 12px;
    color: var(--accent-color);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 15px;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--accent-color);
}

/* ========================================
   WhatsApp Float Button
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 42px;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

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

.breadcrumb span {
    color: var(--accent-color);
}

/* ========================================
   Content Styles
   ======================================== */

.page-content {
    padding: 60px 0;
}

.page-content h2 {
    margin: 30px 0 15px;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content ul, .page-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-content li {
    margin-bottom: 8px;
}

/* ========================================
   Blog / Post Styles
   ======================================== */

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

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

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

.post-thumbnail {
    height: 220px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
}

.post-meta i {
    color: var(--primary-color);
    margin-right: 4px;
}

.post-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.post-content p {
    color: var(--gray);
    font-size: 15px;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a, .pagination span {
    padding: 10px 18px;
    border-radius: var(--border-radius);
    background: var(--light-bg);
    color: var(--text-color);
    font-weight: 500;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.pagination span.current {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   Admin Bar Fix
   ======================================== */

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-step::after {
        display: none;
    }

    .registration-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        transition: var(--transition);
        gap: 0;
        overflow-y: auto;
    }

    .main-navigation ul.active {
        left: 0;
    }

    .main-navigation ul li a {
        padding: 15px;
        border-bottom: 1px solid var(--light-bg);
    }

    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }

    .main-navigation ul li.dropdown-open > ul {
        display: block;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .courses-grid, .events-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .top-bar .container {
        justify-content: center;
        text-align: center;
    }

    .top-bar-info {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .registration-form-wrap,
    .contact-form {
        padding: 25px;
    }
}

/* ========================================
   WordPress Default Alignments
   ======================================== */

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.wp-caption {
    max-width: 100%;
}

.gallery-caption {
    font-size: 14px;
}

.bypostauthor {
    display: block;
}

/* ========================================
   Screen Reader Text
   ======================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ========================================
   Certificate Verification Page
   ======================================== */

.cert-verify-section {
    padding: 80px 0;
    background: var(--light-bg);
    min-height: 600px;
}

.cert-verify-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.cert-verify-form-box {
    background: var(--white);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.cert-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 40px;
    box-shadow: 0 8px 25px rgba(26, 95, 158, 0.3);
}

.cert-verify-form-box h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.cert-verify-form-box > p {
    color: var(--gray);
    margin-bottom: 35px;
    font-size: 15px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
}

.input-icon-wrap input {
    padding-left: 48px !important;
}

.form-hint {
    display: block;
    color: var(--gray);
    font-size: 13px;
    margin-top: 6px;
    text-align: left;
}

/* Verification Result */
.cert-verify-result {
    margin-top: 30px;
    animation: fadeInUp 0.5s ease;
}

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

.cert-result-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    text-align: center;
    border: 2px solid transparent;
}

.cert-result-card.valid {
    border-color: var(--success);
}

.cert-result-card.invalid {
    border-color: var(--danger);
}

.cert-result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.cert-result-card.valid .cert-result-icon {
    background: #d4edda;
    color: #155724;
}

.cert-result-card.invalid .cert-result-icon {
    background: #f8d7da;
    color: #721c24;
}

.cert-result-status {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.cert-result-card.valid .cert-result-status {
    color: var(--success);
}

.cert-result-card.invalid .cert-result-status {
    color: var(--danger);
}

.cert-details-table {
    width: 100%;
    text-align: left;
    margin-top: 20px;
}

.cert-details-table tr {
    border-bottom: 1px solid #eee;
}

.cert-details-table tr:last-child {
    border-bottom: none;
}

.cert-details-table th {
    padding: 14px 0;
    color: var(--secondary-color);
    font-weight: 600;
    width: 40%;
}

.cert-details-table td {
    padding: 14px 0;
    color: var(--text-color);
    font-weight: 500;
}

.cert-details-table .cert-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.cert-badge.valid {
    background: #d4edda;
    color: #155724;
}

.cert-badge.expired {
    background: #fff3cd;
    color: #856404;
}

.cert-badge.revoked {
    background: #f8d7da;
    color: #721c24;
}

/* How It Works */
.cert-how-it-works {
    margin-top: 80px;
}

.cert-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.cert-step-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: var(--transition);
}

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

.step-num {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-heading);
}

.cert-step-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin: 10px 0 20px;
    display: block;
}

.cert-step-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.cert-step-card p {
    color: var(--gray);
    font-size: 14px;
}

/* Certificate Verification Responsive */
@media (max-width: 768px) {
    .cert-steps-grid {
        grid-template-columns: 1fr;
    }

    .cert-verify-form-box {
        padding: 30px 20px;
    }

    .cert-details-table th,
    .cert-details-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .cert-details-table th {
        padding-top: 14px;
    }
}
