/* =========================
   style.css
   ========================= */
/*
Theme Name: rmag-mgstheme
Author: Ahmet TUTER
Created on: 2026-01-12
Description: Contemporary, clean, tech-focused WordPress theme
*/

/* =========================
   Global Styles
   ========================= */


/*tech theme*/
/*
:root {
  --bg-main: #0b0f1a;
  --bg-card: #12172a;
  --text-main: #e6e9f0;
  --text-muted: #9aa4bf;
  --accent: #4da3ff;
  --accent-2: #00e0b8;
  --border-soft: rgba(255,255,255,0.08);
}
  */

/*garden theme*/
:root {
    /* Existing garden variables */
    /*--bg-main: #ecec10;       /* page background / bottom of gradient */
    --bg-main: #ffffff;
    /* page background / bottom of gradient */
    --bg-card: #ffffff;
    --text-main: #2e3d2b;
    --text-muted: #6b7b63;
    --accent: #4caf50;
    --accent-2: #81c784;
    --border-soft: rgba(46, 61, 43, 0.1);

    /* Updated gradient variables */
    /*--bg-top: #3aa943;        /* lighter, fresh green for top */
    --bg-top: #ffffff;
    /* lighter, fresh green for top */
    --bg-bottom: var(--bg-main);
    /* bottom uses main background */
    --bg-main-gradient: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));

    /* Footer background */
    --bg-footer: #e6f2e8;
    /* soft, light garden green ----su anda kullanilmiyor gradient oldugundan----*/
    --bg-footer-top: rgba(11, 15, 26, 0.75);
    /* lighter green for top of footer */
    --bg-footer-bottom: #d8eed6;
    /* slightly darker green for bottom of footer */
    --bg-footer-gradient: linear-gradient(180deg, var(--bg-footer-top), var(--bg-footer-bottom));


}



body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-main-gradient);
    color: var(--text-main);
    line-height: 1.65;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    /*padding: 0 20px;*/
}


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

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


*, *::before, *::after {
    box-sizing: border-box; /*content box yerine border box olarak hesaplattiriyorsun her yerde yani no surprises*/
}



h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0 0;
}


/* ----------------------------- STRUCTURE BASLANGIC ------------------------*/


/* ---------------------2,3,4 equal width columns baslangic--------------*/

.layout-cols {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.layout-cols>.col {
    min-width: 0;
}

.layout-cols.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.layout-cols.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.layout-cols.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}


.layout-cols.single {
    grid-template-columns: 2fr 1fr;
    
     
    /*border: 1px solid black; */
    
}





/* responsive */
@media (max-width: 900px) {
    .layout-cols.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .layout-cols {
        grid-template-columns: 1fr;
    }
}



/* ---------------------2,3,4 equal width columns bitis--------------*/





/* ---------------------2,3 UNequal width columns baslangic--------------*/

.layout-cols.uneven-main {
    grid-template-columns: 3fr 1fr;
}

.layout-cols.uneven-featured {
    grid-template-columns: 2fr 1fr 1fr;
}

/* ---------------------2,3 UNequal width columns bitis--------------*/



/*Structure Genel Not: Sectionlarin hep bottom margin 0 yapilip 
vertical spacing alttaki sectionlarin top margini ile saglanacack 
mumkun oldugunca consistency acisindan*/


/* ------------------------- STRUCTURE BITIS---------------------------*/





/*  MOBILE — HOME PAGE SKELETON RESET */


@media (max-width: 700px) {
    .layout-cols {
        display: block;
    }
}



.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.image-card a {
    display: block;
    height: 100%;
    color: #fff;
    text-decoration: none;
}


.image-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}



/* TITLE — MAIN DISPLAY FONT */
.image-card-title {
    margin: 0;
    font-family: 'Orbitron', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}




.image-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0));
            /* -------bu background gradient, ustteki gradiente gore daha koyu yapiyor eger beyaz title ve date gorunme problemi yasarsan ilerde light color resimlerle, bunu kullan yani
                background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15));
            */
}



.image-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.3;
    opacity: 0.9;
    margin: 0.4rem 0 0;
}



/* DATE — TECH / MONO */
.image-card-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    opacity: 0.85;
}



.image-card--large {
    min-height: 340px;
}

.image-card--small {
    max-height: 230px;
}


.image-card {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.image-card:hover {
    transform: scale(1.0075);
}

.image-card img {
    transition: transform 0.1s ease;
}

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



/* CATEGORY LABEL — ROBOTIC ACCENT */
.image-card-category {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.5rem;
    font-family: 'Tektur', 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: auto;
    border-radius: 3px;
}




.category-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    }



/* auto-fill grid, slightly bigger squares */
.category .category-grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2px;
    margin: 0 0 0 0;
}

/* square cards */
.category .image-card--square {
    aspect-ratio: 1 / 1;
    border-radius: 0;
}

/* smaller title variant (reuse base font family) */
.category .image-card-title--small {
    font-size: 1rem;
    line-height: 1.25;
}







/*  RECENT POST TITLE LIST — GLOBAL (F04 + F05) */


.recent-post-title-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-post-title-item {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.recent-post-title-item a {
    text-decoration: none;
}

.recent-post-date {
    margin-left: 0.4rem;
    font-size: 0.85em;
    opacity: 0.7;
}



/* ----------bu kategori olmayan section title lar icin-------------------*/
.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 17px;
    padding-bottom: 0;
    border-bottom: 2px solid #111;
    display: inline-block;
}
/* ----------bu kategori olmayan section title lar icin-------------------*/





/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------GLOBAL STYLES BITIS-------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/


/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------HEADER BASLANGIC ---------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/



.site-header {
    position: relative;   /* THIS is the missing piece */
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    background: rgba(11, 15, 26, 0.75);
    /*position: sticky;    bu simdilik boyle biraktim yukari yapismasin header diye
    top: 0;*/
    z-index: 1000;     /*ve position sticky olmayinca top 0 ve z index 100 de gereksiz yani position sticky sonra istersen bunlari da aktif yap*/
}




.site-logo a {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}


.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}


@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: nowrap;              /* no vertical stacking */
        flex-direction: row-reverse;    /* lean right, flow left */
        justify-content: flex-start;    /* anchor to right edge */
        gap: 12px;
    }
}


.main-nav a {
    color: rgb(255, 255, 255);
    font-weight: 500;
}


/* Make the 3 columns equal height */


.site-header .layout-cols {
  display: flex;
  align-items: stretch; /* equal height */
  gap: 5px;
}

.site-header .layout-cols > .col {
  flex: 1;              /* equal width columns */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* push content to bottom */
}






/* LEFT column */
.site-header .layout-cols > .col:first-child {
  position: relative;
  background-image: url("https://robotmagazine.com/wp-content/uploads/2025/09/Quadcopter-design-concept-rma.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* RIGHT column */
.site-header .layout-cols > .col:last-child {
  position: relative;
  background-image: url("https://robotmagazine.com/wp-content/uploads/2025/11/brax-900x557-rmag-1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}







/*--------------------------------------*/

/* LEFT + RIGHT columns only */
.site-header .layout-cols > .col:first-child::before,
.site-header .layout-cols > .col:last-child::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 80%,
    rgba(0,0,0,0.35) 100%
  );
}
/*---------------------------------------*/



/* keep text above overlay */
.site-header .layout-cols > .col:first-child > *,
.site-header .layout-cols > .col:last-child > * {
  position: relative;
  z-index: 1;
}

.site-header .layout-cols > .col:last-child {
  align-items: flex-end;   /* pushes nav to the right */
}



.site-header .layout-cols > .col img {
  display: block;
}










/* =========================
   HEADER CATEGORY MENU — SINGLE USE
   ========================= */

.category-bar {
    display: flex;
    flex-wrap: wrap;              /* allow multiple lines */
    gap: 10px 14px;
    padding: 10px 0 6px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* category link */
.category-link {
    position: relative;
    padding: 6px 5px;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    color: #9aa5a0;               /* ← default text (edit freely) */
    color: #eeeb04;
    white-space: nowrap;

    transition: color 0.15s ease;
}

/* hover */
.category-link:hover {
                   /* ← hover text */
     color: #f45505;               /* ← hover text */
}

/* active category */
.category-link.is-active {
    color: #7fd6a2;               /* ← active text */
}

/* subtle tech underline */
.category-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #7fd6a2,                   /* ← underline color */
        transparent
    );
}


/*---asagisi chil categoryler hoverla display etsin diye yapilanlar 
yoksa hepsi primary gibi gsoterilirken yukarisiydi sadece*/

/* wrapper added in PHP */
.category-item {
    position: relative;
}

/* child container (hidden by default) */
.category-children {
    display: none;
    /*display: none !important;*/
    position: absolute;
    top: 100%;
    left: -6px;

    min-width: 220px;
    padding: 6px 0;

    background: #7d7878;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

    z-index: 1000;
}

/* show on hover */
.category-item:hover .category-children {
    display: block;
    
    /*display: block !important;*/
}

/* child category links */
.category-child-link {
    display: block;
    padding: 8px 14px;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.79rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    color: #e6f605;
    white-space: nowrap;

    transition: background 0.15s ease, color 0.15s ease;
}

/* hover child */
.category-child-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #f45505;
}





/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------HEADER BITIS---------------- ---------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/







/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------FUNCTIONS BASLANGIC-------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/



/*---------------------------------------STYLE of function 01------------------------------------*/
/*---------------------------------------STYLE of function 01------------------------------------*/
/*---------------------------------------STYLE of function 01------------------------------------*/



/* ============================================================
   HOME TOP GRID — LAYOUT
   ============================================================ */

.main-top-grid {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    /* matches grid gap */
}

/* -------------------- UPPER ROW -------------------- */

.main-top-grid-upper {
    display: grid;
    grid-template-columns: 1.012fr 1.012fr 0.5fr;
    gap: 0.25rem;
}

/* -------------------- LOWER ROW -------------------- */

.main-top-grid-lower {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
    margin: 0 0 0 0;
}



/* Bigger titles in top row */
.main-top-grid-upper .image-card-title {
    font-size: 1.4rem;
}

/* Smaller titles in bottom row */
.main-top-grid-lower .image-card-title {
    font-size: 1rem;
}



/* ============================================================
   RESPONSIVE BEHAVIOR
   ============================================================ */

@media (max-width: 1024px) {

    .main-top-grid-upper {
        grid-template-columns: 1fr 1fr;
    }

    .main-top-grid-lower {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {

    .main-top-grid-upper,
    .main-top-grid-lower {
        grid-template-columns: 1fr;
    }

    .image-card--large,
    .image-card--small {
        min-height: 220px;
    }
}


/* ============================================================
   TOP STATIC BANNER
   ============================================================ */

.top-static-banner {
    background: #ccc;
    background-image: url("https://robotmagazine.com/wp-content/uploads/2026/02/banner-tutan-02-transparent-cropped-RM.png"); 
    background-size: contain;
    background-position: center; /* Keeps the subject centered */
    background-repeat: no-repeat;
    border-radius: 6px;
    min-height: 340px;
}




/*----------------------------------------STYLE of function 02-------------------------------------*/
/*----------------------------------------STYLE of function 02-------------------------------------*/
/*----------------------------------------STYLE of function 02-------------------------------------*/




.category-grid {
    display: grid;
    gap: 0.25rem;
    grid-auto-rows: 220px;
}

.category-grid.grid-2 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
}


.category-grid.grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.category-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.grid-3 .grid-item:first-child {
    grid-row: span 2;
}

.thumb-f02 {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
}





.category-grid .thumb-f02 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-grid .thumb-f02 {
    position: relative;
}

.category-grid .thumb-f02 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.category-grid .image-card-title {
    font-size: 1rem;
}






/*----------------------------------------STYLE of function 03-------------------------------------*/
/*----------------------------------------STYLE of function 03-------------------------------------*/
/*----------------------------------------STYLE of function 03-------------------------------------*/




/* ============================================================
   Function 03 — Home Slider 1
   ============================================================ */

.home-slider-1 {
    position: relative;
    margin: 0 0 0 0;



}

.home-slider-1 .slider-wrapper {
    overflow: hidden;
    position: relative;
}

.home-slider-1 .slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.home-slider-1 .slide {
    min-width: 300px;      /* width of each slide */
    margin-right: 16px;    /* gap between slides */
    flex-shrink: 0;
    aspect-ratio: 16 / 9; /* or 4 / 3 */
}




.home-slider-1 .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    border-radius: 4px;
    line-height: 1;
}

.home-slider-1 .slider-arrow.prev { left: 0.5rem; }
.home-slider-1 .slider-arrow.next { right: 0.5rem; }


.home-slider-1 .image-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


/* Optional: image cards inside slides */
.home-slider-1 .image-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-slider-1 .image-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
}

.home-slider-1 .image-card-title {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.home-slider-1 .image-card-date {
    font-size: 0.75rem;
    opacity: 0.85;
    color: #fff;
}







/*----------------------------------------STYLE of function 04-------------------------------------*/
/*----------------------------------------STYLE of function 04-------------------------------------*/
/*----------------------------------------STYLE of function 04-------------------------------------*/











/*----------------------------------------STYLE of function 05-------------------------------------*/
/*----------------------------------------STYLE of function 05-------------------------------------*/
/*----------------------------------------STYLE of function 05-------------------------------------*/




/*----------------------------------------STYLE of function 06-------------------------------------*/
/*----------------------------------------STYLE of function 06-------------------------------------*/
/*----------------------------------------STYLE of function 06-------------------------------------*/



.category-post-count {
    list-style: none;
    padding: 0;
}

.category-post-count li {
    margin-bottom: 5px;
}

.category-post-count a {
    text-decoration: none;
    color: #333;
}

.category-post-count a:hover {
    color: #0073aa;
}





/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------INDEX BITIS---------------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/

/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------CATEGORY PAGE BASLANGIC---------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/





.layout-cols.wide-left {
    grid-template-columns: 4fr 3fr;
}


/*bu hem category page de hem de buyuk category girde deki category title i icin gerekirse ayir sonra*/
.category-title.is-archive {
    font-size: 1.6rem;
    margin: 0 0 30px 0;
    line-height: 1.1;
    
}




@media (max-width: 700px) {
    .category .layout-cols {
        display: block;
    }
}





/* ---------------c01 icin olan bitis --------------------------------------------------*/

/* ---------------c02 icin olan baslanbgic --------------------------------------------------*/


/* C02 – CATEGORY VERTICAL DISPLAY */

.c02-category-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* vertical spacing between items */
}

/* Card */
.c02-golden-card {
    display: flex;
    gap: 1.4rem;
    width: 100%;
    padding: 1.4rem;
    background: linear-gradient(135deg, #0c1020, #131a35);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.c02-golden-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(0,0,0,0.65);
}

/* Thumbnail */
.c02-thumb {
    flex: 0 0 34%;
    max-width: 34%;
    border-radius: 12px;
    overflow: hidden;
}

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

.c02-golden-card:hover .c02-thumb img {
    transform: scale(1.06);
}

/* Content */
.c02-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Title */
.c02-title {
    margin: 0 0 0.6rem;
    font-family: "Michroma", "Orbitron", sans-serif;
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

.c02-title a {
    color: #e7eaff;
    text-decoration: none;
}

.c02-title a:hover {
    color: #a9c2ff;
}

.c02-date {
    font-family: "Inter", "Roboto", sans-serif;
    font-size: 0.75rem;
    color: #8b94c7;
}

/* Excerpt */
.c02-excerpt {
    font-family: "Inter", "Open Sans", sans-serif;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #cfd3ee;
    margin: 0;
}

/* Pagination */
.c02-pagination {
    margin-top: 3rem;
    text-align: center;
}

.c02-pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #141a33;
    color: #cfd3ee;
    text-decoration: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
}

.c02-pagination .current {
    background: #2b3b78;
    color: #ffffff;
}

.c02-pagination .page-numbers:hover {
    background: #1d2750;
}

/* Mobile */
@media (max-width: 768px) {
    .c02-golden-card {
        flex-direction: column;
    }

    .c02-thumb {
        max-width: 100%;
        height: 200px;
    }
}



/* ---------------c02 icin olan bitis --------------------------------------------------*/








/* ---------------banner icin baslangic --------------------------------------------------*/

.category-side-images img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 2px solid #eaeaea;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }




/* ---------------banner icin baslangic --------------------------------------------------*/






/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------CATEGORY PAGE BITIS-------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/


/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------SINGLE BASLANGIC ---------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/



/* Prevent content images from breaking column layout */
.s01-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Featured image wrapper must respect column width */
.s01-post-thumb {
    max-width: 100%;
    overflow: hidden;
}

/* Featured image itself */
.s01-post-thumb img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Tighten title → meta spacing */
.s01-post-title {
    margin-bottom: 0.25rem;
}

.s01-post-meta {
    margin-top: 0;
}


/* Post categories at bottom */
.s01-post-categories {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.s01-cat-label {
    font-family: "Inter", "Roboto", sans-serif;
    margin-right: 0.25rem;
}

.s01-cat-links a {
    color: var(--accent);
    text-decoration: none;
}

.s01-cat-links a:hover {
    color: var(--accent-2);
}




/* =========================
   S02 – Selected Related Posts
========================= */

.s02-related-posts {
    margin-top: 4rem;
}

.s02-related-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-family: "Orbitron", sans-serif; /* reuse TEKNIK vibe */
}

.s02-related-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Modifier, not a new card system */
.s02-card {
    opacity: 0.9;
}

.s02-card:hover {
    opacity: 1;
}






/* ============================================================
   POST IMAGE CAPTION STYLE
   ============================================================ */
/*bu asagisi resimlerin captionunu post icinde guzel caption style ile display etmek icin */

.wp-block-image {
  text-align: center;
  margin-bottom: 1.5em;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.s01-post-content .wp-block-image figcaption,
.s01-post-content .wp-element-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
  line-height: 1.4;
  text-align: center;
}




/*bu da galeri eklersen*/
.wp-block-gallery figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  text-align: center;
}






/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------SINGLE BITIS-------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/


/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------PAGE BASLANGIC-------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/








/* ===== Static Page Layout ===== */

.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.8rem;
    line-height: 1.25;
    margin: 0;
}

/* Main page content */
.page-content {
    max-width: 760px;      /* readable width */
    line-height: 1.7;
}

/* Paragraph spacing */
.page-content p {
    margin-bottom: 1.2rem;
}

/* Headings inside page content */
.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

/* Lists */
.page-content ul,
.page-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Images inside static pages */
.page-content img {
    max-width: 100%;
    height: auto;
}

/* Links */
.page-content a {
    text-decoration: underline;
}

.page-content a:hover {
    text-decoration: none;
}

/* Legal / small text blocks */
.page-content small {
    font-size: 0.9rem;
}




/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------PAGE BITIS-------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/





/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------FOOTER BASLANGIC ---------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/






.site-footer {
   
    padding: 0 0 10px 0;
    margin-top: 32px;
    border-top: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    background: var(--bg-footer-gradient);
    /*border: 1px solid black;*/
}


.site-footer nav ul {
    list-style: none;
    margin-right: 20px;
    padding: 0;
    display: flex;
    gap: 24px;
    /*border: 1px solid black;*/
}


.site-footer nav a {
    color: rgb(255, 255, 255);
    font-weight: 500;
}

.site-footer .layout-cols {
  display: flex;
  gap: 5px;
  position: relative;
  
}



/* Shared styles for ALL columns */
.site-footer .layout-cols > .col {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: 1;              /* equal width columns */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* push content to bottom */
  align-items: flex-end;
  min-height: 230px;   /* choose your value */
}

/* Specific images for each */
.site-footer .layout-cols > .col:first-child { 
  background-image: url("https://robotmagazine.com/wp-content/uploads/2026/02/banner-tutan-02-transparent-cropped-RM.png"); 
  background-size: contain;
    background-position: center; /* Keeps the subject centered */
    background-repeat: repeat;
  
}

.site-footer .layout-cols > .col:nth-child(2) { 
  background-image: url("https://robotmagazine.com/wp-content/uploads/2025/09/Data-center-rmag.jpg"); 
  
}

.site-footer .layout-cols > .col:last-child { 
  background-image: url("https://robotmagazine.com/wp-content/uploads/2025/10/physics-eng-simulator-ros-900x567-rmag.png"); 
  
}




.site-footer .layout-cols > .col > * {
  position: relative;
  z-index: 1;
  
}




.site-footer .layout-cols > .col::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 80%,
    rgba(0,0,0,0.35) 100%
  );
}


.footer-copy {
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
    
}




/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -----------------------------------------------------------FOOTER BITIS ---------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/

/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------ACCESSIBILITY BASLANGIC --------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/





/* Accessibility — visible keyboard focus */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}




/* Accessibility: Skip to content */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    top: 10px;
    left: 10px;
}




/* ---------------------------------------------------------------------------------------------------------------------------------*/
/* -------------------------------------------------------ACCESSIBILITY BITIS ------------------------------------------------------*/
/* ---------------------------------------------------------------------------------------------------------------------------------*/

